From bd7585bcb492aee57e716fbed02976fcb16d7428 Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Thu, 12 Jan 2023 09:51:04 +0800 Subject: [PATCH] update docs --- packages/artplayer-vitepress/docs/plugin/iframe.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/artplayer-vitepress/docs/plugin/iframe.md b/packages/artplayer-vitepress/docs/plugin/iframe.md index 7d0e0606a..0a509feea 100644 --- a/packages/artplayer-vitepress/docs/plugin/iframe.md +++ b/packages/artplayer-vitepress/docs/plugin/iframe.md @@ -108,7 +108,7 @@ https://unpkg.com/artplayer-plugin-iframe/dist/artplayer-plugin-iframe.js ::: -## 实例接口 +## `index.html` 接口 ### `commit` @@ -154,23 +154,23 @@ iframe.message((event) => { ### `destroy` -销毁实例,销毁后 `index.html` 无法与 `iframe.html` 通信 +销毁后 `index.html` 无法与 `iframe.html` 通信 ```js iframe.destroy(); ``` -## `Iframe` 接口 +## `iframe.html` 接口 :::warning 提示 -`Iframe` 接口 只能运行在 `iframe.html` 里 +`iframe.html` 接口 只能运行在 `iframe.html` 里 ::: ### `inject` -注入脚本,接收来自实例的消息 +注入脚本,接收来自 `index.html` 的消息 ```js ArtplayerPluginIframe.inject(); @@ -178,7 +178,7 @@ ArtplayerPluginIframe.inject(); ### `postMessage` -将消息推送到实例 +将消息推送到 `index.html` ```js iframe.message((event) => {