使用代码处理数据#
¥Processing data with code
函数#
¥Function
函数是一段用于执行特定任务的代码块。在 n8n 中,你可以编写自定义 JavaScript 或 Python 代码片段来添加、删除和更新从节点接收的数据。
¥A function is a block of code designed to perform a certain task. In n8n, you can write custom JavaScript or Python code snippets to add, remove, and update the data you receive from a node.
代码 节点允许你访问传入数据并对其进行操作。使用此节点,你可以使用 JavaScript 代码创建任何所需的函数。
¥The Code node gives you access to the incoming data and you can manipulate it. With this node you can create any function you want using JavaScript code.