阅读背景:

在Chrome 62 / Chrome Canary 64中支持ES6模块,在本地不起作用,CORS错误

来源:互联网 

Index.html

的index.html

<html>
    <head>
    <script type="module">
        import {answer} from './code.js'
        console.info("It's ${answer()} time!")
    </script>
    </head>
    <body>
    </body>
</html>
<html>
    <head>
  



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: