Skip to content

Commit

Permalink
i18n(zh-cn): Update client-side-scripts.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
liruifengv committed Dec 18, 2024
1 parent a805ad1 commit bb12a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/guides/client-side-scripts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import ReadMore from '~/components/ReadMore.astro'
Astro 默认处理 `<script>` 标签。

- 任何导入会被打包,这允许你导入本地文件或者 Node 模块。
- 处理过的脚本会被注入到你的页面的 `<head>`,同时添加[`type="module"`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
- 处理过的脚本会被注入到使用 [`type="module"`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) 声明的位置
- 完全支持 TypeScript,包括导入 TypeScript 文件。
- 如果你的组件在一个页面上被用到了多次,脚本只会有一个。

Expand Down

0 comments on commit bb12a2d

Please sign in to comment.