public bool IsNum(string temp)
{
Boolean b=true;
try
{
int x=Convert.ToInt32(temp);
}
catch(Exception e)
{
b=false;
}
return b;
}
C#_判断是否是数字
var schName=$.trim(jQuery("#schName").val());
if(isNaN(schName)) //不是数字
{}
else //是数字
{}
js_判断是否是数字