阅读背景:

nightmare.js如何实现window.callPhantom()函数的功能?

来源:互联网 

I have the following code:

我有以下代码:

var nightmare = Nightmare(option)
nightmare
  .goto('some url')
  .evaluate(() => {
    window.callback = function(cid) {
      // do some stuff
      // should screenshot at this point.
    }
  })
  .screenshot('./png.png') //Doesn't get accurate png here
  .end()
var nigh



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

分享到: