求助大佬,onload之后的function一直沒有被執行(附代碼)。
?<script type="text/javascript">
??window.onload=function(){
???alert("你好!");
???var oBtn = document.getElementById("Btn_login");
???var sHeight = document.documentElement.scrollHeight;
???var sWidth = document.documentElement.scrollWidth;
???var oMask = document.createElement("div");
????oMask.id="mask";
????oMask.style.height = sHeight+"px";
????oMask.style.width = sWidth+"px";
????document.body.appendChild(oMask);
??}
?</script>
用了一句 alert("你好!");做了檢驗,這句話一直顯示不出來。
謝謝各位大佬!
2018-08-28
我測的沒問題