Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///xxx.txt. (Reason: CORS request not http).
原因:
浏览器不支持本地直接访问本地硬盘上的文件。
详细解释:
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
解决方法:
用tomcat,apache等发布文件(网站),http访问即可。