开发者

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

开发者 https://www.devze.com 2023-04-10 06:25 出处:网络
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

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

精彩评论

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