jQuery.data-我可以在其中存储多少数据 [英] jQuery.data - how much data can I store in it

查看:59
本文介绍了jQuery.data-我可以在其中存储多少数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用jQuery.data(element,key,value)可以存储多少数据是否有限制? 另外,数据存储在哪里?在内存中?

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 ?

谢谢

推荐答案

数据内部存储在$ .cache对象中.按照限制,我用任意大量的文本行做了一个小实验,我似乎无法打破它,甚至抛出异常.

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.

这篇关于jQuery.data-我可以在其中存储多少数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆