From a6e10216642a503e25c1a4762befde503a06405b Mon Sep 17 00:00:00 2001 From: fishcui <2510271615@qq.com> Date: Mon, 18 Oct 2021 10:57:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=96=87=E6=A1=A3=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit requirePlugin 想要表达的是引用 Taro 的映射方法,这里代码示例不正确 --- versioned_docs/version-3.x/hybrid.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/versioned_docs/version-3.x/hybrid.mdx b/versioned_docs/version-3.x/hybrid.mdx index baa3b22cb24e..45f6a9fb0e90 100644 --- a/versioned_docs/version-3.x/hybrid.mdx +++ b/versioned_docs/version-3.x/hybrid.mdx @@ -296,6 +296,8 @@ export default { 使用插件的 `js` 接口时,可以使用 `Taro.requirePlugin` 方法。例如,插件提供一个名为 `hello` 的方法和一个名为 `world` 的变量,则可以像下面这样调用: ```js +import { requirePlugin } from '@tarojs/taro' + const myPluginInterface = requirePlugin('myPlugin') const myWorld = myPluginInterface.world