<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Backbone.js Todos</title>
<link rel="stylesheet" href="todos.css"/>
</head>
<body>
<div id="todoapp">
<header>
<h1>Todos</h1>
<input id="new-todo" type="text" placeholder="What needs to be done?">
</header>
<section id="main">
<input id="toggle-all" type="checkbox">
<label for="toggle-all">Mark all as complete</label>
<ul id="todo-list"></ul>
</section>
<footer>
<a id="clear-completed">Clear completed</a>
<div id="todo-count"></div>
</footer>
</div>
<div id="instructions">
Double-click to edit a todo.
</div>
<div id="credits">
Created by
<br/>
<a href="http://jgn.me/">Jérôme Gravel-Niquet</a>.
<br/>Rewritten by: <a href="https://github.com/tastejs/todomvc">TodoMVC</a>.
</div>
<script src="../lib/json2.js"></script>
<script src="../lib/jquery.js"></script>
<script src="../lib/underscore.js"></script>
<script src="../lib/backbone.js"></script>
<script src="../backbone.localStorage.js"></script>
<script src="todos.js"></script>
<!-- Templates -->
<script type="text/template" id="item-template">
<div class="view">
<input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> />
<label><%- title %></label>
<a class="destroy"></a>
</div>
<input class="edit" type="text" value="<%- title %>"/>
</script>
<script type="text/template" id="stats-template">
<% if (done) { %>
<a id="clear-completed">Clear <%= done %> completed <%= done == 1 ? 'item' : 'items' %></a>
<% } %>
<div class="todo-count"><b><%= remaining %></b> <%= remaining == 1 ? 'item' : 'items' %> left</div>
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
backbone官方Todo示例_修正
共15个文件
js:6个
xml:4个
html:1个
5星 · 超过95%的资源 需积分: 10 7 下载量 135 浏览量
2016-03-28
22:20:14
上传
评论
收藏 126KB ZIP 举报
温馨提示
backbone官方Todo示例内含自己详细注释,建议运行之后打开浏览器调试同步学习。
资源推荐
资源详情
资源评论
收起资源包目录
example_backbone.zip (15个子文件)
example_backbone
backbone.localStorage.js 6KB
lib
backbone.js 70KB
jquery.js 261KB
underscore.js 52KB
json2.js 17KB
.idea
misc.xml 599B
workspace.xml 11KB
.name 16B
example_backbone.iml 281B
modules.xml 284B
vcs.xml 164B
todos
index.html 2KB
todos.js 11KB
todos.css 4KB
destroy.png 357B
共 15 条
- 1
资源评论
- 溯光2019-09-04注释真详细,有心了
微枫1993
- 粉丝: 17
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功