javascript - 我想清除 jQuery 存储的所有数据

标签 javascript jquery html

我通过 jQuery data() 在 HTML Elemnets 中存储数据...... 使用该数据后,我想重置每个元素的数据......

我不想再次加载页面...

最佳答案

尝试:

jQuery.removeData( element [, name] )

element: A DOM element from which to remove data.

name: A string naming the piece of data to remove.

关于javascript - 我想清除 jQuery 存储的所有数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9634308/

相关文章:

javascript - 防止 jScrollPane 上的 "jump to Top"

html - 水印不显示时,将 html 文件打印为 pdf

javascript - jquery 切换不起作用

javascript - $.getScript 不工作 (IE8)

javascript - Firefox 上的 javascript 链接中的 window.setTimeout 无法正常工作

javascript - 如何在 if 语句中包含鼠标滚轮滚动和单击事件?

php - 我可以动态附加 og 标签并渲染它吗?

html - WKHTMLTOPDF - 边框出现在 pdf 上

javascript - Bootstrap 轮播破坏了我的基于 bootstrap 的库

javascript - 使用 AngularJS 对 $http 请求实现延迟 ($timeout)