阅读背景:

创建helper函数,以在隔离范围中运行函数

来源:互联网 

This code works:

这段代码:

  it.cb(h => {
    console.log(h);
    h.ctn();
  });

  it.cb(new Function(
    'h', [
      'console.log(h)',
      'h.ctn()'
    ]
    .join(';')
  ));
  it.cb(h => {
    c



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

分享到: