zhuangjie
ZhuangJie
const sum = new Function('a', 'b', 'return a + b'); 
console.log(sum(1, 2));//3


let search_data_line = (new Function('', "return (" + dataSource.fetchFun + ")('" + line + "')"))();
posted on 2022-12-23 08:53  zhuangjie  阅读(17)  评论(0)    收藏  举报