最新回答 / 慕桂英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
最新回答 / 慕尼黑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
最新回答 / weixin_慕UI1222874
<input type="button" onclick="quxiao" value="取消设置" >你这里引用函数后面欠了个括号,应该是 <input type="button" onclick="quxiao()" value="取消设置" >而且你最后“取消设置”函数内容的编写,add.style="none";add1.style="none";不能用函数名add和add1丫,这里应该换成你的mychar还有就是,如果你通过id获取元素,你只需要在编写函数之前获取一次就...
2022-05-03
最新回答 / iuhiiu
是字符串类型的,Promet是用于提问的如下面: var score; //score变量,用来存储用户输入的成绩值。 score = prompt("请查看你的成绩") ; if(score>=90) { document.write("你很棒!"); } else if(score>=75) { document.write("不错吆!"); } else if(score>=60) { document.write("要加油!"); ...
2022-04-24