阅读背景:

从nodejs中的字符串调用函数

来源:互联网 

What is the equivalent to window[my_func_name] in nodejs? I'm reading a string from stdin and if it's a function name I want to execute it. I thought global[my_func_name] might work but unfortunately it doesn't.What is the equivalent to window[my_func_name]




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: