最新回答 / 慕斯卡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
最赞回答 / 慕粉3414280
如果你想通过这个简单的需求 去理解变量存在的意义是理解不了的..比如我把需求改一下除了让标签隐藏还需要把标签颜色加深,字体加粗,字体颜色变红..我按照你的写法如下function hidetext() { document.getElementById("con").style.display="none"; document.getElementById("con").style.color="red"; document.getElementById("co...
2022-04-09