使用 js 生成商品海报,在本地测试成功后,信心满满的放到线上,然鹅,报错了,报错信息如下:
1 | Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. at Image.goodsImage.onload |
小峰的博客
使用 js 生成商品海报,在本地测试成功后,信心满满的放到线上,然鹅,报错了,报错信息如下:
1 | Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. at Image.goodsImage.onload |
Ctrl + F 文件内搜索Ctrl + R 文件内替换Ctrl + Shift F 项目内搜索Ctrl + Shift R 项目内替换Ctrl + Shift N 项目内查找文件名Ctrl + Alt O 清除文件内未使用use
使用lnmp集成环境中,运行入口文件在根目录的public目录下的项目时,报错:
1 | FastCGI sent in stderr: "PHP message: PHP Warning: require(): open_basedir restriction in effect. |
安装ThinkPHP5.0.7版本运行项目域名http://test.lo时提示安装ThinkPHP成功,但是运行http://test.lo/index/index时提示:
1 | No input file specified |