开发者

jQuery Use Data Binding

开发者 https://www.devze.com 2023-02-01 20:02 出处:网络
Merged with jQuery how to Bind on a data bind?. Is s开发者_运维知识库omething like this possible with jQuery 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

精彩评论

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