+
95
-

js如何不区分大小写进行字符串查找替换?

js如何不区分大小写进行字符串查找替换?

网友回复

+
15
-

区分大小写替换

var str = "hello world"
var strx = str.replace("world","bfw") // hello bfw
如果想执行...

点击查看剩余70%

+
15
-

同样查找也是

var str="Visit Bfw!"
console.log(str.se...

点击查看剩余70%

我知道答案,我要回答