摘要:
/** * 数字进行千位转换成字符串 */ function escapeThousands(int) { let num = (int || 0).toString(), result = ''; while(num.length > 3) { result = ',' + num.slice(-3) + result; num = num.s... 阅读全文
posted @ 2018-08-14 11:12
刘俊涛的博客
阅读(822)
评论(0)
推荐(0)
摘要:
用来验证身份证格式是否正确 isCardID : function(sId){ var iSum=0 ; var info="" ; if(!/^\d{17}(\d|x)$/i.test(sId)) return "你输入的身份证长度或格式错误"; sId=sId.replace(/x$/i,"a"); if(th... 阅读全文
posted @ 2018-08-14 10:43
刘俊涛的博客
阅读(1441)
评论(0)
推荐(0)