使用innerHtml没反映
function a()
{
testdiv.innerHtml= " <h1> fda </h1> ";
}
<div name= "testdiv ">
aaaaaaaaaaaaaaaaaaaaaaaa
</div>
<input type= "button " name= "button " onclick= "a() ">
怎么没反映的呢?
它没有提示错误
------解决方案--------------------innerHTML
not
innerHtml