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訪問即可。