最近在写项目的时候,用到了h5的canvas;在编辑器中用浏览器打开没有问题,但是在文件夹中打开,canvas的动态效果消失了;检查浏览器的报错:Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access.大意为来自源文件://'的图像已经被跨源资源共享策略阻止了:无效响应。因此,“null”是不允许访问的。不太明白是什么问题引起的资源共策略被阻止?求指点