用document.write写的html和用document.createElement("xx")两种方法有什么不同?想php判断如果符合情况才输出层的代码,减少页面的加载速度,那我是要怎么做呢?