随笔分类 -  js正则

摘要://手机号格式 3-4-4 不验证手机号码: Mobile_input(type){ if(type "recvMobile"){ var value = this.erp_register_msg.recvMobile; }else if(type "fapiaoRecvMobile"){ var 阅读全文
posted @ 2020-09-16 14:24 Action_swt 阅读(303) 评论(0) 推荐(0) 编辑
摘要:value = value.replace(/[\u4E00-\u9FA5]|[A-Za-z]/g,''); 阅读全文
posted @ 2020-09-16 14:17 Action_swt 阅读(2023) 评论(0) 推荐(0) 编辑
摘要:obj.value=obj.value.replace(/[\u4E00-\u9FA5]|[\uFE30-\uFFA0]/g,''); 阅读全文
posted @ 2020-09-16 10:17 Action_swt 阅读(139) 评论(0) 推荐(0) 编辑
摘要:$('#m-input').on('keyup', function () { var that = $(this); var value = that.val(); value = value.replace(/[^0-9]/ig, ""); var arr = value.split(''); 阅读全文
posted @ 2020-09-16 10:07 Action_swt 阅读(85) 评论(0) 推荐(0) 编辑
摘要:var str = '2016060520103600466'; var str=str.replace(/\s/g,'').replace(/(.{4})/g,"$1 "); 阅读全文
posted @ 2020-07-22 13:54 Action_swt 阅读(142) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示