backbone.js
BackboneJS: Map RESTful URL to old-school HTTP Query URL
I\'ve just picked up BackboneJS for a work experiment. We are implementing a whole slew of web-apps on our platform so using a JS framework would simplify a lot of stuff. However, the way to query the[详细]
2023-04-06 09:03 分类:问答backbone.js rendering view
This is my view for Backbone var RepoListView = Backbone.View.extend({ el: $(\'#wrapper\'), events: { \"click #more_repos\" : \"get_more_repos\"[详细]
2023-04-06 07:27 分类:问答Backbone.js TypeError thrown on model.save
In my current Backbone app, I have no problems creating or destroying models. The changes propagate to my server without any problems. But[详细]
2023-04-06 04:30 分类:问答When item of collection is changed
When a item of collection changed, collec开发者_运维知识库tions \"change\" trigger is fired or not? If not should i bind them myself? Do anybody give me an example about this?the change event is fired[详细]
2023-04-06 02:27 分类:问答Get dynamic event ID in backbone.js
I\'m messing around with backbone.js for the first time and am also new to MVC.. This sample code creates a list and each list has an anchor with the class of updateTotal . I can successfully call t[详细]
2023-04-06 01:06 分类:问答What is `require` in the content of Backbone.js?
This is an extract of the Backbone.js source (near the very top): // Require Underscore, if we\'re on the server, and it\'s not already present.[详细]
2023-04-06 00:26 分类:问答How do you handle this type of update in backbone.js?
This object lives on the client: { item1: {thing1:\'one\', thing2:\'two\'}, item2: {thing1:\'one\', thing2:\'two\'}[详细]
2023-04-06 00:18 分类:问答Handling multiple instance of a collection?
Do I need to bind to every collection that is instantiated of the same type or do I bind to a common change event that passes in a reference to itself?[详细]
2023-04-05 21:14 分类:问答rewrite backbone.sync
I\'m using backbone.js with websockets and sending data to the server based on events. Is it possible to design/rewrite Backbone.sync to transport model changes to the server in a normalized way?[详细]
2023-04-05 19:56 分类:问答backbone.js: encapsulating view functions?
Pretty new to backbone.js so forgive me of my ignorance. I\'m wondering, is there a way to encapsulate functions within the View class specifically?[详细]
2023-04-05 19:38 分类:问答