开发者

What is the difference between $.cache and $.data?

In jQuery:

What is the difference between $.cache and $.data?

Don't both of them provide the s开发者_如何学Came functionality?


$.cache is the internal hash (Object) for caching purposes, $.data is a function, which provides the functionality and modifies the $.cache Object itself.

I would not use $.cache at all.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜