注意:不是在function中進行判斷
2 回答

有只小跳蛙
TA貢獻1824條經驗 獲得超8個贊
JS判斷是否為數字if(!isNaN(val)){
alert("是數字");
}else{
alert("不是數字");
}
ASP判斷:if not IsNumeric (id) then
response.Write "參數必須為數字"
response.End
end if

慕田峪9158850
TA貢獻1794條經驗 獲得超7個贊
JS判斷是否為數字if(!isNaN(val)){
alert("是數字");
}else{
alert("不是數字");
}
ASP判斷:if not IsNumeric (id) then
response.Write "參數必須為數字"
response.End
end if
根據具體問題類型,進行步驟拆解/原因原理分析/內容拓展等。
- 2 回答
- 0 關注
- 162 瀏覽
添加回答
舉報
0/150
提交
取消