promise.html:1 Access to XMLHttpRequest at ‘file:///D:/Code/es6/mock/user.json’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https
很容易理解就是跨域请求不支持file ,解决办法
chrome的快捷方式,在属性–>目标: 添加 --allow-file-access-from-files