��非�字字符的正�表�式以及返回光�

前端之家收集整理的这篇文章主要介绍了��非�字字符的正�表�式以及返回光�前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
//Regular Express to filter the character,return bool
function ValidNumber(inpString) {
   return /^[-+]?\d+(\d+)?$/.test(inpString);
}
//return the cursor to where judge
$('#id').focus();

猜你在找的正则表达式相关文章