mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 10:01:20 -08:00
添加cdn例子
This commit is contained in:
1 parent
30e5a776e6
commit
9f01b17137
2 files changed
+12
No files matched your search
@@ -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`.
|
||||
|
||||
## 使用
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user