随笔分类 - js正则
摘要:^(?![^\da-zA-Z]+$).{6,20}$
阅读全文
摘要://手机号格式 3-4-4 不验证手机号码: Mobile_input(type){ if(type "recvMobile"){ var value = this.erp_register_msg.recvMobile; }else if(type "fapiaoRecvMobile"){ var
阅读全文
摘要:value = value.replace(/[\u4E00-\u9FA5]|[A-Za-z]/g,'');
阅读全文
摘要:obj.value=obj.value.replace(/[\u4E00-\u9FA5]|[\uFE30-\uFFA0]/g,'');
阅读全文
摘要:$('#m-input').on('keyup', function () { var that = $(this); var value = that.val(); value = value.replace(/[^0-9]/ig, ""); var arr = value.split('');
阅读全文
摘要:var str = '2016060520103600466'; var str=str.replace(/\s/g,'').replace(/(.{4})/g,"$1 ");
阅读全文