1、DEMO样式 |
首先我们需要搭建一个简单的demo样式,推荐大家使用bootstrap,可以很快的搭建出一个清晰简洁的页面。
给大家分享一段我的代码吧。
<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