摘要:
官方英文版API入口(如果你英文好的话):https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md. 汉化版API入口(网上有很多版本,有兴趣可以多去搜一些):https://zhaoqize.github.io/puppet 阅读全文
摘要:
``` var puppeteer = require('puppeteer'); const devices = require('puppeteer/DeviceDescriptors'); const iphone = devices["iPhone 6"] const path = requ 阅读全文
摘要:
``` var puppeteer = require('puppeteer'); const devices = require('puppeteer/DeviceDescriptors'); const iphone = devices["iPhone 6"] const path = requ 阅读全文
摘要:
``` // async函数返回一个 Promise 对象,可以使用then方法添加回调函数。
// 当函数执行的时候,一旦遇到await就会先返回,等到异步操作完成,再接着执行函数体内后面的语句。
class Demo { //构造函数 constructor(x, y) { this.x = x //类中变量 this.y = y }
... 阅读全文