摘要: 判断字符串是否全部为数字if(/^\d+$/.test(str)) { 全为数字,执行... }当然你也可以用isNaN来判断if(isNaN(str)){ str是个数字,执行...} 阅读全文
posted @ 2014-12-26 11:17 nc_blog 阅读(208) 评论(0) 推荐(0)