【文件属性】:
文件名称:backboneTodo:从头开始做ToMVC克隆
文件大小:64KB
文件格式:ZIP
更新时间:2021-05-21 16:44:03
JavaScript
// js / collections / todos.js
var app = app || {};
// Todo Collection //----------------
//待办事项的集合由localStorage(而不是远程服务器)支持。 var TodoList = Backbone.Collection.extend({
// Reference to this collection's model.
model: app.Todo,
// Save all of the todo items under the `"todos-backbone"` namespace.
localStorage: new Backbone.LocalStorage('todos-backbone'),
// Filter down the list of all todo it
【文件预览】:
backboneTodo-master
----assets()
--------base.css(7KB)
--------bg.png(41KB)
----js()
--------app.js(101B)
--------collections()
--------models()
--------views()
--------routers()
--------lib()
----README.md(1KB)
----index.html(2KB)