document.write()创建元素有缺陷,

如果在页面加载完毕后,此时通过这种方式创建元素,那么页面上存在的所有内容全部被干掉。

原文地址:https://www.cnblogs.com/Yanss/p/10310258.html