Skip to content

Commit fd72ce3

Browse files
committed
docs: update ll.imports
1 parent 958b829 commit fd72ce3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/apis/ScriptAPI/Ll.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ LLSE provides the interface import to import functions already exported by other
118118
- Return value: The imported function
119119
- Return value type: `Function`
120120

121-
The return value of `ll.import` is a function. When you call this function, the cross-plugin call process will be done
121+
The return value of `ll.imports` is a function. When you call this function, the cross-plugin call process will be done
122122
automatically in the background. The parameters of the calling function will be wrapped and passed to the remote
123123
function, and the return value of this function is the return value returned by the remote function after it has been
124124
executed.
@@ -127,7 +127,7 @@ executed.
127127

128128
For example, there is a plug-in that exports a function using the namespace AAA, and the name of the exported function
129129
is Welcome
130-
You can execute `welcome = ll.import("AAA", "Welcome"); ` to import this function. After the import is complete, you can
130+
You can execute `welcome = ll.imports("AAA", "Welcome"); ` to import this function. After the import is complete, you can
131131
execute directly below:
132132

133133
`welcome("hello",2,true);`

docs/apis/ScriptAPI/Ll.zh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
- 返回值:导入的函数
111111
- 返回值类型: `Function`
112112

113-
`ll.import` 的返回值是一个函数。当你调用这个函数时,跨插件调用的流程将在后台自动完成。调用函数的参数将被包装并传递给远程函数,此函数的返回值即是远程函数执行完毕之后返回的返回值。
113+
`ll.imports` 的返回值是一个函数。当你调用这个函数时,跨插件调用的流程将在后台自动完成。调用函数的参数将被包装并传递给远程函数,此函数的返回值即是远程函数执行完毕之后返回的返回值。
114114

115115
#### 远程调用参数类型对照,其中Type可以为其他受支持的类型
116116

@@ -135,7 +135,7 @@
135135
#### 远程调用函数举例说明
136136

137137
比如,有一个插件导出了某个函数,函数导出使用的命名空间为 AAA,导出函数名称为 Welcome
138-
当你使用 `welcome = ll.import("AAA","welcome"); ` 完成导入之后,你就可以直接在下面执行:
138+
当你使用 `welcome = ll.imports("AAA","welcome"); ` 完成导入之后,你就可以直接在下面执行:
139139

140140
`welcome("hello",2,true);`
141141

0 commit comments

Comments
 (0)