mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:31:20 -08:00
Update class.md
This commit is contained in:
1 parent
da1b3112d6
commit
7a977ac6c4
1 file changed
+16
-4
+16
-4
@@ -67,7 +67,7 @@ Return an array of all player instances
|
|||||||
[Run Code](/Class.instances)
|
[Run Code](/Class.instances)
|
||||||
|
|
||||||
```js
|
```js
|
||||||
console.log(Artplayer.instances.length);
|
console.info(Artplayer.instances);
|
||||||
```
|
```
|
||||||
|
|
||||||
## scheme
|
## scheme
|
||||||
@@ -79,7 +79,7 @@ Return the scheme used to verify player options
|
|||||||
[Run Code](/Class.scheme)
|
[Run Code](/Class.scheme)
|
||||||
|
|
||||||
```js
|
```js
|
||||||
console.log(Artplayer.scheme);
|
console.info(Artplayer.scheme);
|
||||||
```
|
```
|
||||||
|
|
||||||
## validator
|
## validator
|
||||||
@@ -91,7 +91,7 @@ Return validator: [https://github.com/zhw2590582/option-validator](https://githu
|
|||||||
[Run Code](/Class.validator)
|
[Run Code](/Class.validator)
|
||||||
|
|
||||||
```js
|
```js
|
||||||
console.log(Artplayer.validator);
|
console.info(Artplayer.validator);
|
||||||
```
|
```
|
||||||
|
|
||||||
## kindOf
|
## kindOf
|
||||||
@@ -103,5 +103,17 @@ Return type judgment function: [https://github.com/jonschlinkert/kind-of](https:
|
|||||||
[Run Code](/Class.kindOf)
|
[Run Code](/Class.kindOf)
|
||||||
|
|
||||||
```js
|
```js
|
||||||
console.log(Artplayer.kindOf);
|
console.info(Artplayer.kindOf);
|
||||||
|
```
|
||||||
|
|
||||||
|
## Emitter
|
||||||
|
|
||||||
|
- Type: `Function`
|
||||||
|
|
||||||
|
Return the `Emitter` constructor
|
||||||
|
|
||||||
|
[Run Code](/Class.Emitter)
|
||||||
|
|
||||||
|
```js
|
||||||
|
console.info(Artplayer.Emitter);
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user