案例-todolist计划列表【显示列表】

	<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>

  

上一篇:IDEA(自用)插件推荐!!!


下一篇:oh my zsh theme 设置