比如document.body,最好是写成document.getElementsByTagName("body")[0]; 转载于:https://www.cnblogs.com/loveMis/p/9246513.html