exports.replaceAll = function (find, replace, str) {
  var find = find.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  return str.replace(new RegExp(find, 'g'), replace);
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-03-01
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2021-08-16
  • 2022-12-23
  • 2021-12-11
  • 2021-11-03
  • 2022-02-21
相关资源
相似解决方案