update docs

This commit is contained in:
Harvey committed 2022-05-06 11:05:16 +08:00
1 parent 33bb679046
commit fd51264bb8
46 files changed
+141 -141

No files matched your search

@@ -16,7 +16,7 @@ import TabItem from '@theme/TabItem';
npm install artplayer
```
```js
```js showLineNumbers
import Artplayer from 'artplayer';
const art = new Artplayer({
@@ -32,7 +32,7 @@ const art = new Artplayer({
yarn add artplayer
```
```js
```js showLineNumbers
import Artplayer from 'artplayer';
const art = new Artplayer({
@@ -55,7 +55,7 @@ const art = new Artplayer({
<script src="https://unpkg.com/artplayer/dist/artplayer.js"></script>
```
```js
```js showLineNumbers
const art = new window.Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
@@ -16,7 +16,7 @@ import TabItem from '@theme/TabItem';
npm install artplayer
```
```js
```js showLineNumbers
import Artplayer from 'artplayer';
const art = new Artplayer({
@@ -32,7 +32,7 @@ const art = new Artplayer({
yarn add artplayer
```
```js
```js showLineNumbers
import Artplayer from 'artplayer';
const art = new Artplayer({
@@ -55,7 +55,7 @@ const art = new Artplayer({
<script src="https://unpkg.com/artplayer/dist/artplayer.js"></script>
```
```js
```js showLineNumbers
const art = new window.Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',