最贊回答 / 青青大大
<!DOCTYPE? HTML><html ><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>函數(shù)</title><script type="text/javascript">//定義函數(shù)function add4(x,y){? if(x>y){? ? ?return x;?? }? else if(x...
2022-04-23
最新回答 / 慕哥3354142
你定義的函數(shù)方法為asd(),計算兩整數(shù)比較。調(diào)用的qwq()??!qwq()又不是你定義的函數(shù)方法!你把asd=qwq1(5,4)和asd=qwq2(6,3)位置換一下qwq1=asd(5,4),qwq2=asd(6,3);
2022-04-13
最新回答 / weixin_慕絲6489054
不行,這是一個確定的數(shù)組元素,.length說明的是數(shù)組的長度不是某一個元素的長度 myarr[i].length這個可以
2022-04-11
for(var y=0;y<student.length;y++){
if(student[y][3]=='大一'){
if(student[y][1]=='女'){
document.write(student[y][0]+" ");
}
}
}
if(student[y][3]=='大一'){
if(student[y][1]=='女'){
document.write(student[y][0]+" ");
}
}
}
for(var y=0;y<student.length;y++){
if(student[y][3]=='大一'){
if(student[y][1]=='女'){
document.write(student[y][0]+" ");
}
}
}
if(student[y][3]=='大一'){
if(student[y][1]=='女'){
document.write(student[y][0]+" ");
}
}
}
最新回答 / blueberryGargamel
?? switch(c){? ? ? ? case "+":result=a+b;? ? ? ? break;? ? ? ? case "-":result=a-b;? ? ? ? break;? ? ? ? case "*":result=a*b;? ? ? ? break;? ? ? ? case "/":result=a/b;? ? }document.getElementById("fruit").value=result;//完成運算結(jié)果輸出,不要放在Switch里邊
2022-04-07
最新回答 / 十六_____
應該是用來確定所選擇的愛好的位置,減1之后就是所選擇的愛好的位置了