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