最新回答 / qq_白夜行_07
//頁面完全加載后運行var e = document.createEvent("MouseEvents");e.initEvent("click", true, true);document.getElementById("aotoruncheck").dispatchEvent(e);?
2020-09-13
最新回答 / 慕容5682324
你調(diào)用了兩次alert()函數(shù),alert("hello!");? ?alert(mynum);自然會彈出兩個,刪掉一個就好
2020-09-11
已采納回答 / 專業(yè)課不到90分不改網(wǎng)名
不需要在大括號后面寫上rec(),因為你的button里就已經(jīng)用onclick屬性觸發(fā)了rec()方法,相當于在這里調(diào)用了函數(shù)
2020-09-09
已采納回答 / qq_慕斯卡2179048
function quit(){??? var a=confirm("是否取消設(shè)置");??? if(a==true)??? {??????? document.getElementById("con").removeAttribute("style");??????? document.getElementById("txt").removeAttribute("style");??? }}
2020-09-05
已采納回答 / 七月_Miss
代碼本身有問題,第一個else后面應該有兩個括號,第二個else后面應該只有兩個括號?function openWindow()? ? {var open = confirm ('open new window!');? ? ? ? if (open==true)? ? ? ? {var url = prompt('open this web', 'www.google.ca');? ? ? ? ? ? if (url!=null)? ? ? ? ? ? {window.open(url,"_blank"...
2020-09-05
最贊回答 / weixin_慕先生4035002
function color(){? ? var color = document.getElementById('txt');? ? color.style.color='red' //任何你想要的顏色}//另外題目的button要加一個onclick
2020-09-04