使用DOM(Document Obj Model)进行操作,innerHTML/outerHTML/innerText/outerText
document.body.innerHTML = "a";//替换body内容为字符串"a"