DEMO介绍 是DEMO - User List 的扩展,增加查询 大体实现 •创建Contact Model var Contact = Backbone.Model.extend({ defaults: { name: '小强', email: 'walker@dead.com' }, // validate user name validate: function(attrs,options) { if (attrs.name == "") { return "what
方法简介: empty() This method removes not only child (and other descendant) elements, but also any text within the set of matched elements. This is because, according to the DOM specification, any string of text within an element is considered a child no