注意:不是在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条经验 获得超8个赞
JS判断是否为数字if(!isNaN(val)){
alert("是数字");
}else{
alert("不是数字");
}
ASP判断:if not IsNumeric (id) then
response.Write "参数必须为数字"
response.End
end if
根据具体问题类型,进行步骤拆解/原因原理分析/内容拓展等。
- 2 回答
- 0 关注
- 177 浏览
添加回答
举报
0/150
提交
取消
