添加cdn例子

This commit is contained in:
Harvey committed 2020-03-10 09:22:28 +08:00
1 parent 30e5a776e6
commit 9f01b17137
2 files changed
+12

No files matched your search

+6
View File
@@ -69,6 +69,12 @@ import Artplayer from 'artplayer';
<script src="path/to/artplayer.js"></script>
```
或者从 jsDelivr CDN 引入:
```html
<script src="https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"></script>
```
将会导出全局变量到`window.Artplayer`.
## 使用
+6
View File
@@ -71,6 +71,12 @@ Or umd builds are also available:
<script src="path/to/artplayer.js"></script>
```
Or from jsDelivr CDN:
```html
<script src="https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"></script>
```
Will expose the global variable to `window.Artplayer`.
## Usage