版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jinziweiwang/article/details/68922842
1.自定义属性:
$('#XXX').attr(name,value);
2.移除自定义属性:
$('#XXX').removeAttr(name);
3.解绑事件:
$('#XXX').off(‘enentName’);
$('#XXX').attr(name,value);
$('#XXX').removeAttr(name);
$('#XXX').off(‘enentName’);