为什么不能直接删除div
function clearText() {
var body=document.getElementsByTagName("body")[0];
body.removeChild(body.childNodes[0]);
}function clearText() {
var body=document.getElementsByTagName("body")[0];
body.removeChild(body.childNodes[0]);
}2017-04-02
举报