用js正则匹配1234567890出1234 56 78 90 我写的是var re=/(\d{4})(\d{2})(\d{2})(\d{2})/求一个更简单的写法,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 06:15:57
用js正则匹配1234567890出1234567890我写的是varre=/(\d{4})(\d{2})(\d{2})(\d{2})/求一个更简单的写法,用js正则匹配1234567890出1234
用js正则匹配1234567890出1234 56 78 90 我写的是var re=/(\d{4})(\d{2})(\d{2})(\d{2})/求一个更简单的写法,
用js正则匹配1234567890出1234 56 78 90 我写的是var re=/(\d{4})(\d{2})(\d{2})(\d{2})/
求一个更简单的写法,
用js正则匹配1234567890出1234 56 78 90 我写的是var re=/(\d{4})(\d{2})(\d{2})(\d{2})/求一个更简单的写法,
匹配1234567890输出1234 56 78 90?
alert('1234567890'.replace(/^(\d{4})(\d{2})(\d{2})(\d{2})$/, '$1 $2 $3 $4'));