[]定义了一个string,使用replace方法替换一些字段,为什么没有生效呢

var testString = "123456789"
testString.replace("1","000")
console.log(testString)
已邀请:

linxuyang

赞同来自:

testString = testString.replace("1","000");
 

要回复问题请先

商务合作
商务合作