js中最常用的 test exec match search replace split 6个方法学习
1. test 检查指定的字符串是否存在 2. exec 和 match 返回查询值 这两个方法返回内容相似,具体的区分请查看 这里 3. search 返回搜索位置 类似于indexof 4. replace 替换字...
1. test 检查指定的字符串是否存在 2. exec 和 match 返回查询值 这两个方法返回内容相似,具体的区分请查看 这里 3. search 返回搜索位置 类似于indexof 4. replace 替换字...