English 中文(简体)
如何改革落后模式项目
原标题:How to reformat Backbone model item

My backbone collection fetches its models without issue.

回返模式({=待命) 我应如何从模型内对日期进行改革,以便该日期能够按照观点在模板中读取? 感谢

最佳回答

预约日期是列报一级的活动,在模型中不作任何改动。 要么把格式逻辑直接添加到你的模板中,要么最好是建立一个格式化帮助器,使你能够从任何模板中预先和一致地确定日期。

有许多预定的图书馆。 http://blog.stevenlevithan.com/archives/date-time-format>。

问题回答

暂无回答




相关问题
What s the appropriate granularity for Backbone.js Views?

I m adopting Backbone.js to render a small corner of an existing large web app. If this goes well, I can see Backbone.js growing to encompass the whole of the app, lending some much-needed structure ...

Rendering Layouts with Backbone.js

If you were to build a single page web application (SPWA) using Backbone.js and jQuery with--for example--two controllers that each required a unique page layouts, how would you render the layout? ...

Load html without refresh

Im unsure of how to approach this, should I have the html to be loaded hidden or load it from somewhere? I want to load a form in one page, and dynamic content on other pages. The form can be saved ...

Why are my CoffeeScript/backbone.js events not firing?

I m trying to familiarize myself with CoffeeScript and backbone.js, and I must be missing something. This CoffeeScript: MyView = Backbone.View.extend events: { "click" : "testHandler" ...

热门标签