使用代码处理数据(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.
Code 节点让你可以访问传入的数据,并且可以对其进行操作。使用这个节点,你可以使用 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.