aide访问本地html,1整天了,还是没解决加载本地文件问题

Access to Image at 'file:///E:/layawork/myLaya12/bin/h5/war/background.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access.

加载本地文件总是报错, chrome 浏览器快捷方式有加 --allow-file-access-from-files 了,还是一样。下载的 微信飞机源码,早上能正常运行,下午就不行了。报了一堆后面这样的错

XMLHttpRequest cannot load file:///E:/layabox/layaair-doc-master/project/AS3/AirWar/lesson8/bin/h5/res/atlas/gameUI.atlas. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

另外 LayaIDE 编译打开经常只有黑屏,或者:

未定义任何生成任务。使用 "isBuildCommand" 在 tasks.json 文件中标记任务。

{

// See https://go.microsoft.com/fwlink/?LinkId=733558

// for the documentation about the tasks.json format

"version": "0.1.0",

"command": "${workspaceRoot}/.laya/astool/layajs",

"isShellCommand": false,

"args": ["${workspaceRoot}/.actionScriptProperties;iflash=false;windowshow=false;chromerun=false;quickcompile=true"],

"showOutput": "always"

}

感觉这里都跟 模板的一样了啊,要怎么改?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值