let code = `function code(){
                    return 'code'
                }`
let fun = new Function(`return ${code}`)();
console.log(fun);

Logo

前往低代码交流专区

更多推荐