代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!-- HTML -->
<section id="todoapp" class="todoapp">
<header class="header">
<h1>todos</h1>
<input placeholder="What needs to be done?" v-focus class="new-todo" @keyup.enter="addTodo($event)" v-model="todo.title">
</header>
<section class="main">
<input id="toggle-all" type="checkbox" class="toggle-all" v-model="allChecked">
<label for="toggle-all">Mark all as complete</label>
<ul class="todo-list">
<li :class="{completed:item.completed,editing:currentEdit===item}" v-for="(item,index) in completeState" :key="index" @dblclick="currentEdit=item">
<div class="view">
<input type="checkbox" v-model="item.completed" class="toggle">
<label>{{item.title}}</label>
<button class="destroy"></button>
</div>
<input class="edit" @blur="editTodoTitle(index,$event)" @keyup.enter=" editTodoTitle(index,$event) " :value="item.title " @keyup.esc="currentEdit=null " v-focus>
</li>
</ul>
</section>
<footer class="footer ">
<span class="todo-count ">
<strong>{{todoCount}}</strong> item left</span>
<ul class="filters ">
<li><a @click="stateSelet($event,0) " href="#/ " :class="{selected: currentcss[0]} ">All</a></li>
<li><a @click="stateSelet($event,1) " href="#/active " :class="{selected:currentcss[1] } ">Active</a></li>
<li><a @click="stateSelet($event,2) " href="#/completed " :class="{selected: currentcss[2]} ">Completed</a></li>
</ul>
<button class="clear-completed " @click="claerCompleted ">Clear completed</button>
</footer>
</section>
<!--- 2CSS -->
<link rel="stylesheet " href="css/base.css ">
<link rel="stylesheet " href="css/index.css ">
<!--- 3、 提供的数据 -->
<script src="lib/vue.js "></script>
<script src="js/app.js "></script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。