diff --git a/docs/index.html b/docs/index.html index afcaae3..4cd83e9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -28,8 +28,8 @@

通过 npm

import '@ppzp/noty/content/index.css' // 引入默认样式

通过 CDN

-

-
+
<link rel="stylesheet" href="https://unpkg.com/@ppzp/noty.js/content/index.css">
+<script src="https://unpkg.com/@ppzp/noty.js/global.js" type="module"></script>

通过 CDN 的方式引入后,你可以通过 window.noty 使用 Noty.js 的默认配置