1.dataset 比 attribute操作耗时
2.dataset JS操作使用驼峰命名
3.dataset JS操作设值只能是String
4.jQuery.data对data数据做出的更改,不会反映到HTML元素data属性上
https://www.cnblogs.com/summa/p/4561474.html
http://www.webhek.com/post/element-dataset-api.html
1.dataset 比 attribute操作耗时
2.dataset JS操作使用驼峰命名
3.dataset JS操作设值只能是String
4.jQuery.data对data数据做出的更改,不会反映到HTML元素data属性上
https://www.cnblogs.com/summa/p/4561474.html
http://www.webhek.com/post/element-dataset-api.html