js去掉某一属性

将某一属性赋值为空就行了。

例如:

document.getElementById('second').style.color = '';

猜你喜欢

转载自www.cnblogs.com/wanlibingfeng/p/9236903.html