Jquery选择器(二)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jinziweiwang/article/details/68922842

1.自定义属性:

$('#XXX').attr(name,value);

2.移除自定义属性:

$('#XXX').removeAttr(name);

3.解绑事件:

$('#XXX').off(‘enentName’);



猜你喜欢

转载自blog.csdn.net/jinziweiwang/article/details/68922842