var width = $(window).width(); var height = $(window).height(); var html = ""; html += ""; window.onload = function () { var mask = document.getElementById('loading'); mask.parentNode.removeChild(mask); }; document.write(html);"; html += "正在加载,请等待..."; html += ""; html += "
加上这段代码就好了!