当前节点输入#
用于处理当前节点输入的方法。某些方法和变量在代码节点中不可用。
Python支持
你可以在代码节点中使用Python。但在表达式中不可用。
| 方法 | 描述 | 是否在代码节点中可用? |
|---|---|---|
$binary |
Shorthand for $input.item.binary. Incoming binary data from a node |
|
$input.item |
The input item of the current node that's being processed. Refer to Item linking for more information on paired items and item linking. | |
$input.all() |
All input items in current node. | |
$input.first() |
First input item in current node. | |
$input.last() |
Last input item in current node. | |
$input.params |
Object containing the query settings of the previous node. This includes data such as the operation it ran, result limits, and so on. | |
$json |
Shorthand for $input.item.json. Incoming JSON data from a node. Refer to Data structure for information on item structure. |
|
$input.context.noItemsLeft |
Boolean. Only available when working with the Loop Over Items node. Provides information about what's happening in the node. Use this to determine whether the node is still processing items. |
| 方法 | 描述 |
|---|---|
_input.item |
The input item of the current node that's being processed. Refer to Item linking for more information on paired items and item linking. |
_input.all() |
All input items in current node. |
_input.first() |
First input item in current node. |
_input.last() |
Last input item in current node. |
_input.params |
Object containing the query settings of the previous node. This includes data such as the operation it ran, result limits, and so on. |
_json |
Shorthand for _input.item.json. Incoming JSON data from a node. Refer to Data structure for information on item structure. Available when you set Mode to Run Once for Each Item. |
_input.context.noItemsLeft |
Boolean. Only available when working with the Loop Over Items node. Provides information about what's happening in the node. Use this to determine whether the node is still processing items. |