by Devin Yang

建立于: 7年前 ( 更新: 7年前 )

在这里我提供Mac上的运行方式
抓图: 会产出output.png
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless \
--screenshot https://www.google.com
列印PDF: 会产出output.pdf
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless \
--print-to-pdf https://www.google.com
以下列出可用参数:
说明 有用的参数
Screenshots --screenshot
Create PDFs --print-to-pdf
Dump the DOM --dump-dom
Window size --window-size=412,732

Tags:

Devin Yang

文章内容无法一一说明,如果您有什么不了解处,欢印提问哦:)

No Comment

Post your comment

需要登入才可留言!

类似文章


composer

如何知道,自己composer环境的目录在那里

查自己环境的composer家目录

laravel

Laravel上的表单方法欺骗

为何Laravel需要有Form Method Spoofing呢? 因为HTML表单并不支持PUT、PATCH及DELETE等动作,因此在Laravel上 在提交HTML表单送出时,我们需要透过一个隐藏的_method输入栏,作为HTTP的请求发送。

sublime

sublime3 巨集的热键设置

一、重tools=>Record Marco进行录制。 二、保存录制的巨集成为一个文件。tools=>Save Marco... 三、设置热键,运行巨集。