js去掉某一属性

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

例如:

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

 

posted @ 2018-06-28 08:25  万里冰封  阅读(260)  评论(0编辑  收藏  举报