阅读背景:

限制服务器发送到页面的主干模型属性?

来源:互联网 

I have been reading up on Backbone.sync and the Backbone parse. I admit I am confused. I have a BB model that is inheriting from another model and its sending all the attributes to the page. I want to limit the attributes it sends to the page, right now it is sending everything from the database table (only want id, fname, lname, etc). This model wont be used to save, its only for reference within the page. My question is do I override the Backbone.sync or the parse and do I do it on the inheriting model or the "super" model? I have been reading up on Backbone.sync and the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: