猿问
请问该怎么在text中获得到得value值进行判断是否数字?
注意:不是在function中进行判断
一只甜甜圈
浏览 178
回答 2
2回答
有只小跳蛙
JS判断是否为数字if(!isNaN(val)){alert("是数字");}else{alert("不是数字");}ASP判断:if not IsNumeric (id) thenresponse.Write "参数必须为数字"response.Endend if
0
0
0
慕田峪9158850
JS判断是否为数字if(!isNaN(val)){alert("是数字");}else{alert("不是数字");}ASP判断:if not IsNumeric (id) thenresponse.Write "参数必须为数字"response.Endend if根据具体问题类型,进行步骤拆解/原因原理分析/内容拓展等。
0
0
0
随时随地看视频
慕课网APP
相关分类
C
typedef入门问题
5 回答
正则表达式
正则判断数字末尾的为0情况
3 回答
我要回答