mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 19:41:25 -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>
|
<script src="path/to/artplayer.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
或者从 jsDelivr CDN 引入:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"></script>
|
||||||
|
```
|
||||||
|
|
||||||
将会导出全局变量到`window.Artplayer`.
|
将会导出全局变量到`window.Artplayer`.
|
||||||
|
|
||||||
## 使用
|
## 使用
|
||||||
|
|||||||
@@ -71,6 +71,12 @@ Or umd builds are also available:
|
|||||||
<script src="path/to/artplayer.js"></script>
|
<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`.
|
Will expose the global variable to `window.Artplayer`.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
Reference in new issue
Block a user