javascript

1. 直接在<script type="module"></script>标签内写JS代码。
2. 直接引入文件:<script type="module" src="/static/js/index.js"></script>。
3. 将所需的代码通过import关键字引入到当前作用域。
全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务