when I was trying to learn the module of es6, Baidu found that it was necessary to set the type of script to module in order to introduce js files, but after Google ran, I reported a similar cross-domain problem. I was confused, and Baidu didn"t find the reason. Thank you very much! Friends!
here is my picture
(code in the bar.js file)
test.htmlbar.js