Update README.md

This commit is contained in:
Harvey Zack authored and GitHub committed 2021-12-10 15:24:38 +08:00
1 parent 97b6778111
commit e5e7498a2b
1 file changed
+6 -2
+6 -2
View File
@@ -53,16 +53,20 @@ $ yarn add artplayer
import Artplayer from 'artplayer'; import Artplayer from 'artplayer';
``` ```
Or umd builds are also available: Or umd build also available:
```html ```html
<script src="path/to/artplayer.js"></script> <script src="path/to/artplayer.js"></script>
``` ```
Or from jsDelivr CDN: Or from CDN:
```html ```html
<!-- jsdelivr -->
<script src="https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"></script> <script src="https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"></script>
<!-- unpkg -->
<script src="https://unpkg.com/artplayer/dist/artplayer.js"></script>
``` ```
Will expose the global variable to `window.Artplayer`. Will expose the global variable to `window.Artplayer`.