English 中文(简体)
我如何使用背后器执行“亮度模式”?
原标题:How can I implement a "highlight mode" using Backbone.js?

我已开始研究后遗症,我似乎在就如何在清单中执行不完整事件的光温和

jsFiddle。

每个单项物品都有一个检查箱,标明其模型填满的属性。

我有一个叫做Highlight Incomplete <>em>,我想在每一项目上增加一个类别:li,其中其模型为completed:false。 我想通过这一方式来toggle<>>,这样就有一个人点亮了它们,下一个点击去了所有重点。

我写了模型收集的过滤器,以归还这些不完整的物品。 我认为,我可以这样做,但我 st不.地试图把它说出来。

我不想在模型中添加另一个称为“<代码>的明灯/代码”的属性,因为可从其<代码>填写的<<<>条码>属性中推断出这一特性,而且只有在其直观代表性上才会存在。

还应当有live,这样,如果您有highlight Mode,并添加一些新内容,就应当加以强调。

我如何能够这样做?

最佳回答

If you structure your CSS to match your html heirarchy, and have your model states constantly updated, you won t have to worry about syncing issues: http://jsfiddle.net/PnSPH/5

检查箱:

An alternative would be to stick with just having .render(), but have the template handle the class and checked status

问题回答

你不需要收集。 抵达 不完整......





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签