mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 02:51:20 -08:00
Update build:docs and trans:docs scripts
This commit is contained in:
1 parent
a2d3e20479
commit
a2b57495a2
20 files changed
+749
-775
No files matched your search
@@ -1,10 +1,10 @@
|
||||
# 静态属性
|
||||
# Static Properties
|
||||
|
||||
这里的 `静态属性` 是指挂载在 `构造函数` 的 `一级属性`,非常少使用
|
||||
Here, `Static Properties` refer to the `first-level properties` mounted on the `constructor`, which are very rarely used.
|
||||
|
||||
## `instances`
|
||||
|
||||
返回全部播放器实例的数组,假如你想同时管理多个播放器的时候,可以用到该属性
|
||||
Returns an array of all player instances. You can use this property when you want to manage multiple players at the same time.
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -21,7 +21,7 @@ console.info([...Artplayer.instances]);
|
||||
|
||||
## `version`
|
||||
|
||||
返回播放器的版本信息
|
||||
Returns the version information of the player.
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -31,7 +31,7 @@ console.info(Artplayer.version);
|
||||
|
||||
## `env`
|
||||
|
||||
返回播放器的环境变量
|
||||
Returns the environment variables of the player.
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -41,7 +41,7 @@ console.info(Artplayer.env);
|
||||
|
||||
## `build`
|
||||
|
||||
返回播放器的打包时间
|
||||
Returns the build time of the player
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -51,7 +51,7 @@ console.info(Artplayer.build);
|
||||
|
||||
## `config`
|
||||
|
||||
返回视频的默认配置
|
||||
Returns the default configuration of the video
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -61,7 +61,7 @@ console.info(Artplayer.config);
|
||||
|
||||
## `utils`
|
||||
|
||||
返回播放器的工具函数集合
|
||||
Returns a collection of utility functions for the player
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -69,7 +69,7 @@ console.info(Artplayer.config);
|
||||
console.info(Artplayer.utils);
|
||||
```
|
||||
|
||||
:::warning 全部工具函数请参考以下地址:
|
||||
:::warning For the full list of utility functions, please refer to the following address:
|
||||
|
||||
[artplayer/types/utils.d.ts](https://github.com/zhw2590582/ArtPlayer/blob/master/packages/artplayer/types/utils.d.ts)
|
||||
|
||||
@@ -77,7 +77,7 @@ console.info(Artplayer.utils);
|
||||
|
||||
## `scheme`
|
||||
|
||||
返回播放器选项的校验方案
|
||||
Returns the validation scheme for the player options
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -87,7 +87,7 @@ console.info(Artplayer.scheme);
|
||||
|
||||
## `Emitter`
|
||||
|
||||
返回事件分发器的构造函数
|
||||
Returns the constructor for the event dispatcher
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -97,7 +97,7 @@ console.info(Artplayer.Emitter);
|
||||
|
||||
## `validator`
|
||||
|
||||
返回选项的校验函数
|
||||
Returns the validation function for options
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -107,7 +107,7 @@ console.info(Artplayer.validator);
|
||||
|
||||
## `kindOf`
|
||||
|
||||
返回类型检测的函数工具
|
||||
Returns the function tool for type checking
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -117,7 +117,7 @@ console.info(Artplayer.kindOf);
|
||||
|
||||
## `html`
|
||||
|
||||
返回播放器所需的 `html` 字符串
|
||||
Returns the `html` string required for the player
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
@@ -127,7 +127,7 @@ console.info(Artplayer.html);
|
||||
|
||||
## `option`
|
||||
|
||||
返回播放器的默认选项
|
||||
Returns the player's default options
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user