且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Grunt替换文件中的文本

更新时间:2023-01-15 19:28:35

您将正则表达式用引号引起来-不要这样做,它应该可以正常工作:

You wrapped your regex in quotes - don't do that and it should work fine:

var result = data.replace(/bootstrap\//g, 'bootstrap/bootstrap/');