已采納回答 / 慕尼黑0383253
if(qr!=null){window.open("http://www.xianlaiwan.cn")}prompt 的返回值是輸入的值,CONFIRM返回布爾型。
2020-01-19
已采納回答 / qq_慕函數244325
?function cancelSetting(){??? var msg=confirm("是否確定取消設置");??? if(msg==true){??????? obj.removeAttribute("style");??? }定義這個函數的時候差個反括號
2020-01-19
已采納回答 / Fswi
順序問題,因為講解上先執行的是<script>,所以結果是null,任務是<p>后執行<script>,所以是[object HTMLParagraphElement]
2020-01-16
已采納回答 / qq_精慕門5134154
????{var?mes2=prompt("確定打開的網址","http://www.xianlaiwan.cn/"); 這一句話"確定打開網址"后面的逗號寫成了中文符?
2020-01-15
已采納回答 / qq_速度與激情_0
好像邏輯就錯了吧,函數openWindow() 應該把'var?tip?=?confirm("在?打開網頁?");'包住吧;另外,"http://www.xianlaiwan.cn/"里的“:”為中文狀態下的,改為英文狀態下的:<!DOCTYPE?html><html><head>????<title>?new?document?</title>????<meta?http-equiv="Content-Type"?content="text/ht...
2020-01-07
已采納回答 / 幕布斯5468980
function openWindow(){? ? ? ? var message = confirm('是否打開新窗口?');? ? ? ? if(message==true){? ? ? ? ? ? var address = prompt('請輸入你的地址','http://www.xianlaiwan.cn/');? ? ? ? ? ? window.open(address,'_blank','width=400,height=500,menubar=no,toolbar=no');? ? ? ? }e...
2019-12-10
已采納回答 / weixin_慕仔7034253
這里的var dis = document.getElementById("op").style.display="none";var dis = document.getElementById("op").style.display="block";需要分開,因為寫在一起相當于直接賦值為空,自然就沒辦法隱藏了。var dis = document.getElementById("op");dis.style.display="none";var dis = document.getElementById...
2019-12-09