当我在 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)