最新回答 / 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
                
            
                                最赞回答 / qq_慕函数7254363
                                
                                                            function openWindows() {	var message = confirm('是否打开新网页');	if (message == true) {		window.open('https://www.baidu.com', 'address', '_blank', 'width=400;height500', 'menubar=no', 'toolbar=no')	}else{		window.close();	}}
                            
                        
                        2022-04-01
                
             
             
        









