燕睿涛

Results 8 comments of 燕睿涛

use [babel](https://www.babeljs.cn/repl) to translate, such as : ```js const shape = { radius: 10, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius };...

@shuofenghao ```js class shape { radius = 10; perimeter = () => 2 * Math.PI * this.radius; } const newShape = new shape; console.log(newShape.perimeter()); a = newShape.perimeter a() ``` Above...

```sh ➜ testChromium node t.js Detected window.innerWidth to be 800. ➜ testChromium node t.js Detected window.innerWidth to be 800. ➜ testChromium node t.js Detected window.innerWidth to be 800. ➜ testChromium...

@aslushnikov THX, I want to create a page demo, show the full page to someone else, but now only show part of viewport.

when i delete some code, that be ok: file `lib/Page.js` line `56~58` code ```js // Initialize default page size. if (!appMode) await page.setViewport({width: 800, height: 600}); ``` I think maybe...

@alixaxel Thanks very much. I mean I can create a page demo that show 100% viewport. my english is poor 😶🙃🙂