小编dov*_*ell的帖子

Node js .replace() 不是一个函数

当我在 node js 中运行这段代码时,我得到 TypeError: filter_list.replace is not a function,我也尝试过使用 toString 但这似乎没有帮助,有人可以帮忙吗?

var filter_list =["abcd","efgh"];
filter_list.join();
return filter_list.replace(/,/g, ' AND filter:');
Run Code Online (Sandbox Code Playgroud)

javascript arrays string replace node.js

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

arrays ×1

javascript ×1

node.js ×1

replace ×1

string ×1