最新回答 / 慕桂英6357273
<script?type="text/javascript"> ??var?mystr="hello?world!"; ??document.write(mystr);??//直接寫變量名,輸出變量存儲(chǔ)的內(nèi)容。</script>
最新回答 / 慕斯卡7301471
?學(xué)習(xí)一下=和== ,===的區(qū)別吧if(k===true){? ? ? ? b.style="none";? ? }或者f(k){? ? ? ? b.style="none";? ? }
2022-08-20
var elem=document.getElementById("txt");
//定義"取消設(shè)置"的函數(shù)
function modifySetting(){
var msg = confirm("取消以上的設(shè)置");
if(msg){
elem.removeAttribute('style');//取消設(shè)置恢復(fù)默認(rèn)雅樣式
}else{
alert("不做操作");
}
}
//定義"取消設(shè)置"的函數(shù)
function modifySetting(){
var msg = confirm("取消以上的設(shè)置");
if(msg){
elem.removeAttribute('style');//取消設(shè)置恢復(fù)默認(rèn)雅樣式
}else{
alert("不做操作");
}
}
2022-08-11
最新回答 / 慕尼黑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
同學(xué)你好,你的答案沒有大問題,但是cancel函數(shù)中沒有寫confirm(),另外刪除屬性應(yīng)該用removeAttribute()。<...code...>
2022-08-08
var message = confirm("是否打開?")
if(message == true){
window.open('_blank','http://idcbgp.cn/','width:400px,height:500px,menubar,toolbar');
}else{
document.write("否");
}
if(message == true){
window.open('_blank','http://idcbgp.cn/','width:400px,height:500px,menubar,toolbar');
}else{
document.write("否");
}
2022-08-05
function openWindow (){
var myopen = confirm("是否打開新窗口")
if(myopen === true){
window.open('http://idcbgp.cn','_block','width:400,hight:500')
}else{
return
}
}
var myopen = confirm("是否打開新窗口")
if(myopen === true){
window.open('http://idcbgp.cn','_block','width:400,hight:500')
}else{
return
}
}
2022-07-13