最新回答 / 慕斯6265260
var fh=document.getElementById("select").value; switch(fh){ case "+": result= parseFloat(a1)+parseFloat(a2); break; case "-": result=parseFloat(a1)-parseFloat(a2); break; case "*": result=parseF...
2019-04-19
已采纳回答 / 慕斯6265260
<!DOCTYPE html&t; &t;hhtml&t; &t;hhead&t; &tletitle&件&l 事件>/title&t;s &="tscript type="text/javascript"&cti function count() { var x = document.getElementById("txt1").value; ...
2019-04-18
已采纳回答 / qq_慕粉8442543
return "两值相等"后面没写分好,正确代码为:return "两值相等";还有就是代码{}匹配错误:下面是正确的function getmax(x,y){ if(x>y){ return x; }else if(y>x){ return y; }else{ return "相等"; }}
2019-04-18
已采纳回答 / 慕尼黑6441628
定义数组的语句错了,改成下面这样:var infos=[['小A','女',21,'大一'],['小B','男',23,'大三'],['小C','男',24,'大四'],['小D','女',21,'大一'],['小E','女',22,'大四'],['小F','男',21,'大一'],['小G','女',22,'大二'],['小H','女',20,'大三'],['小I','女',20,'大一'],['小J','男',20,'大三']];
2019-04-17