vscode中export 和import导入模块如何运行,需要什么插件
用vscode编辑器,在html页面导入js文件时,一直报下面这个错误,有没有大神解释一下
Access to script at 'file:///D:/ThreeStages/day13pm/lib/components2.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.