方法一 doucumnet.body 方法二 document.getElementsByTagName("body")[0] 转载于:https://www.cnblogs.com/weibo806/p/6056442.html