The code is as follows:
The code for Export_one.js is as follows:
Export function One () { console.log (' One ');} Export function () { console.log (' both ');} function three () { console.log (' Three ');} Function Four () { console.log (' Four '),} function five () { console.log (' Five ');} Export {five};
The code for test_import.html is as follows:
<! DOCTYPE html>"en">"UTF-8"> <title>Title</title><!--introduced 3 JS files, and type is of type module--<script src="https://google.github.io/traceur-compiler/bin/traceur.js"> </script><script src="https://google.github.io/traceur-compiler/bin/BrowserSystem.js "></script><script src="https://google.github.io/traceur-compiler/src/ Bootstrap.js"></script><scripttype="module">Import {Five,one} from './export_one.js'; Five ();//five one ();//one</script></body>A simple way to resolve webstrom in ES6 that does not support import