需要跨域,Chrome 通过启动参数关闭安全策略:
google-chrome-stable --disable-web-security --user-data-dir="/tmp/chrome"
想截图,发现不能保存到文件:
我想了一下,应该是没有截断参数,把参数当成保存路径了:
google-chrome-stable --disable-web-security --user-dir="/tmp/chrome" + 截图保存路径
识别为:
google-chrome-stable --disable-web-security(截图保存路径)
正确的应该是:
google-chrome-stable 截图保存路径
推论:
所有带参数启动的软件窗口截图保存都会有问题。
你做了什么操作? 这边一直在ok 你是不是自己开发了啥导致
Featured Collection
Popular Events
需要跨域,Chrome 通过启动参数关闭安全策略:
google-chrome-stable --disable-web-security --user-data-dir="/tmp/chrome"
想截图,发现不能保存到文件:
我想了一下,应该是没有截断参数,把参数当成保存路径了:
google-chrome-stable --disable-web-security --user-dir="/tmp/chrome" + 截图保存路径
识别为:
google-chrome-stable --disable-web-security(截图保存路径)
正确的应该是:
google-chrome-stable 截图保存路径
推论:
所有带参数启动的软件窗口截图保存都会有问题。