首頁  >  文章  >  web前端  >  vue.js做出圖書管理平台的詳細步驟

vue.js做出圖書管理平台的詳細步驟

php中世界最好的语言
php中世界最好的语言原創
2017-12-31 10:50:552457瀏覽

這次帶給大家的是vue.js做出圖書管理平台的詳細步驟,首先我們需要搭建一個簡單的demo樣式,這篇文章就給大家好好分析一下。

跟大家分享一段我的程式碼吧。  

<div class="container">
  <div class="col-md-6 col-md-offset-3">
  <h1>Vue demo</h1>
     
  <div id="app">
   <table class="table table-hover ">
    <caption></caption>
   <thead>
    <tr>
    <th>序号</th>
    <th>书名</th>
    <th>作者</th>
    <th>价格</th>
    <th>操作</th>
    </tr>
   </thead>
   </table>
     
   <div id="add-book">
   <legend>添加书籍</legend>
   <div class="form-group">
    <label for="group">书名</label>
    <input type="text" class="form-control" id="group">
   </div>
   <div class="form-group">
    <label for="author">作者</label>
    <input type="text" class="form-control" id="author">
   </div>
   <div class="form-group">
    <label for="price">价格</label>
    <input type="text" class="form-control" id="price">
   </div>
   <button class="btn btn-primary btn-block">添加</button>
   <button class="btn btn-primary btn-block">查询</button>
   </div>
     
   <div id="update-book">
   <legend>修改书籍</legend>
   <div class="form-group">
    <label for="group1">书名</label>
    <input type="text" class="form-control" id="group1">
   </div>
   <div class="form-group">
    <label for="author1">作者</label>
    <input type="text" class="form-control" id="author1">
   </div>
   <div class="form-group">
    <label for="price1">价格</label>
    <input type="text" class="form-control" id="price1">
   </div>
   <button class="btn btn-primary btn-block">完成</button>
   </div>
  </div>
  </div>
 </div>


相信看了以上介紹你已經掌握了方法,更多精彩請關注php中文網其它相關文章!

相關閱讀:

js實作仿window系統行事曆效果

require.js的使用方法詳細介紹

JS怎麼可以做到點擊跳到登陸的個人信箱

#

以上是vue.js做出圖書管理平台的詳細步驟的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn