We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
打扰您了,请教一下! 发现在支持esm的浏览器上,也显示出 ✖ 模块的export命令 ✖ 模板的import命令
判断浏览器是否支持ESM,是否可以使用以下方式判断。 <script type="module"> window.supportESM = true; </script>
<script nomodule> window.supportESM = false; </script> <script> setTimeout(() => { console.log("是否支持supportESM", window.supportESM); }, 1000); </script>
我发现普通<script>标签即使放在<script type="module">下方,执行顺序也会快一点,所以增加了1个1秒延迟打印查看。
The text was updated successfully, but these errors were encountered:
你的方法可行,但是这个库不打算更新了。
Sorry, something went wrong.
No branches or pull requests
打扰您了,请教一下!
发现在支持esm的浏览器上,也显示出
✖ 模块的export命令
✖ 模板的import命令
判断浏览器是否支持ESM,是否可以使用以下方式判断。
<script type="module">
window.supportESM = true;
</script>
我发现普通<script>标签即使放在<script type="module">下方,执行顺序也会快一点,所以增加了1个1秒延迟打印查看。
The text was updated successfully, but these errors were encountered: