document.write与document.getElementById的区别 document.write改变的是整个HTML页面(文档),document.getElementById("demo").innerHTML= 改变的是局部属性