开发者

jQuery Use Data Binding

Merged with jQuery how to Bind on a data bind?.

Is s开发者_运维知识库omething like this possible with jQuery data binding?

<div id="unread-messages">0</div>

Use jQuery data binding to assigning a var "unread-message-ids, so I can keep a list of all the IDs that make up the unread-messages count

Then bind jquery to update the count (currently 0) anytime the unread-message-ids changes (added/subtract to the list size.

Possible?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜