jQuery.data - how much data can I store in it

后端 未结 1 1293
挽巷
挽巷 2020-12-19 07:15

Is there a limit on how much data I can store using jQuery.data( element, key, value ) ? Also, where is the data stored ? In memory ?

Thanks

1条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-19 07:45

    The data is stored internally in the $.cache object. As per the limit, i did a small experiment with arbitrarily large number of text lines, i can't seem to get it to break, or even throw an exception.

    0 讨论(0)
提交回复
热议问题