js控制style
<a href="#"onclick="testcss(this);" style="color:red;font-weight:bold;">哈哈内容</a>
?
function testcss(obja) {??? obja.style.color = 'black';??? obja.style.fontWeight='normal';}
这个中间,style的属性font-weight,在js中要去掉连接符【-】,同时连接符后面的字母要大写