###webworker 注意事项 在worker线程中,可以获得下列对象
-
navigator对象
-
location对象,只读
-
XMLHttpRequest对象
-
setTimeout/setInterval方法
/** | |
webpack.config.js | |
**/ | |
const webpack = require('webpack'); | |
const env = process.env.NODE_ENV; | |
const configs = [{ | |
name:"one", | |
entry:{ | |
}, |
###webworker 注意事项 在worker线程中,可以获得下列对象
navigator对象
location对象,只读
XMLHttpRequest对象
setTimeout/setInterval方法
最终结构 gzip on; //nginx 开启了 header('X-Accel-Buffering: no'); 头部禁用了 buffer
X-Accel-Buffering :暂时还没有彻底明白
https://crispgm.com/page/bigpipe-practice.html
http://www.cnblogs.com/cuchadanfan/p/6233601.html
忽略https校验,在业务中有时候会获取用户的摄像头、话筒等权限 也就是getUserMedia api,因为该权限获取在 47以上的版本就必须是https下才能获取,可能在开发过程中如果不知道怎么配置https 证书,可以用这个参数 ,另外方式就是 localhost 会自动忽略
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --unsafely-treat-insecure-origin-as-secure=http://xxxxx.com --user-data-dir=/tmp
安装
brew install tesseract
源代码安装
git clone https://github.com/tesseract-ocr/tesseract.git
./autogen.sh >./configure