所有现代浏览器均可在JavaScript中导入JSON模块,CSS模块将随后支持
Thomas Steiner, Developer Relations Engineer at Google, recently published a blog post announcing that JSON module scripts were now available in all modern browsers. Developers using the latest...
谷歌开发者托马斯·斯坦纳宣布,所有现代浏览器已支持JSON模块脚本,开发者可在JavaScript中直接导入JSON模块。该功能基于导入属性提案,旨在加载非JS模块。虽然CSS模块导入尚未完全支持,但Chrome已有实现。JSON模块不支持命名导出,因其被视为“单一事物”。开发者可在MDN查看兼容性。
