Skip to content

HTML 插件 ​

用于渲染 HTML 相关内容。

适用平台 ​

暂时只支持 web 版。

安装插件 ​

需要安装 html 插件才能使用,点此访问 Github 仓库。

sh
npm install @leafer-in/html
sh
pnpm add @leafer-in/html
sh
yarn add @leafer-in/html
sh
bun add @leafer-in/html

浏览器 ​

通过全局变量 LeaferIN.html 访问插件内部功能。

html
<script src="https://unpkg.com/@leafer-in/html@1.0.0-rc.27/dist/html.min.js"></script>
<script>
  const { HTMLText } = LeaferIN.html
</script>
html
<script src="https://unpkg.com/@leafer-in/html@1.0.0-rc.27/dist/html.js"></script>
<script>
  const { HTMLText } = LeaferIN.html
</script>

https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm

下一步 ​

HTMLText 元素 ​

Released under the MIT License.