开发者社区 问答 正文

在mpaas小程序程序环境中如何执行?上面的代码在浏览器、nodejs中都可以执行。

在mpaas小程序程序环境中如何执行?

x = 1
a = new Function('return x;')
console.log(a)
b = a()
console.log(b)

上面的代码在浏览器、nodejs中都可以执行。

展开
收起
鸡蛋灌饼儿 2023-02-12 16:54:47 220 分享 版权
1 条回答
写回答
取消 提交回答