猿问

请问该怎么在text中获得到得value值进行判断是否数字?

注意:不是在function中进行判断

一只甜甜圈
浏览 178回答 2
2回答

有只小跳蛙

JS判断是否为数字if(!isNaN(val)){alert("是数字");}else{alert("不是数字");}ASP判断:if not IsNumeric (id) thenresponse.Write "参数必须为数字"response.Endend if

慕田峪9158850

JS判断是否为数字if(!isNaN(val)){alert("是数字");}else{alert("不是数字");}ASP判断:if not IsNumeric (id) thenresponse.Write "参数必须为数字"response.Endend if根据具体问题类型,进行步骤拆解/原因原理分析/内容拓展等。
随时随地看视频慕课网APP
我要回答