最新回答 / 慕桂英6357273
<script?type="text/javascript"> ??var?mystr="hello?world!"; ??document.write(mystr);??//直接寫變量名,輸出變量存儲的內容。</script>
2022-08-22
最新回答 / 慕斯卡7301471
?學習一下=和== ,===的區別吧if(k===true){? ? ? ? b.style="none";? ? }或者f(k){? ? ? ? b.style="none";? ? }
2022-08-20
var elem=document.getElementById("txt");
//定義"取消設置"的函數
function modifySetting(){
var msg = confirm("取消以上的設置");
if(msg){
elem.removeAttribute('style');//取消設置恢復默認雅樣式
}else{
alert("不做操作");
}
}
//定義"取消設置"的函數
function modifySetting(){
var msg = confirm("取消以上的設置");
if(msg){
elem.removeAttribute('style');//取消設置恢復默認雅樣式
}else{
alert("不做操作");
}
}
最新回答 / 慕尼黑4405802
<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" Content="text/html; charset=utf-8" /><title>javascript</title><style type="text/css">body{font-size:12px;}#txt{? ? height:400px;? ? width:600px; border:#3...
2022-08-08
最新回答 / 精慕門253643
同學你好,你的答案沒有大問題,但是cancel函數中沒有寫confirm(),另外刪除屬性應該用removeAttribute()。<...code...>
2022-08-08
var message = confirm("是否打開?")
if(message == true){
window.open('_blank','http://www.xianlaiwan.cn/','width:400px,height:500px,menubar,toolbar');
}else{
document.write("否");
}
if(message == true){
window.open('_blank','http://www.xianlaiwan.cn/','width:400px,height:500px,menubar,toolbar');
}else{
document.write("否");
}