字符串replace()函数不能使用
发布于 7 年前 作者 juan36 10428 次浏览 来自 官方Issues
let text = "xcx-demo";
text.replace(/-/g, "=");
2 回复

可以用呀

text.replace("-","=");

回到顶部