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.
精彩评论