报错形貌:
Access to XMLHttpRequest at ‘https://…/icon/setting_228.webp’ from origin ‘https://…’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
在CanvasKit模式下,图片哀求类型变为xhr,不支持跨域,导致跨域问题。解决方法是将图片放到与服务同域的目录下。
初次打开加载慢