<div class="list_con" id="todolist"> <h2>To do list</h2> <input type="text" name="" id="txt1" class="inputtxt"> <input type="button" name="" value="增加" id="btn1" class="inputbtn"> <ul id="list" class="list"> <li v-for="data in data_list"> <span>{{data}}</span> <a href="javascript:;" class="up">↑</a> <a href="javascript:;" class="down">↓</a> <a href="javascript:;" class="del">删除</a> </li> </ul> </div> <script> var vm = new Vue({ el:"#todolist", data:{ data_list:[ "学习html", "学习css", "学习js", ] } }) </script>