2

【笔记】NodeRed 全局变量

 9 months ago
source link: https://loli.fj.cn/2023/08/16/NodeRed%E5%85%A8%E5%B1%80%E5%8F%98%E9%87%8F/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

【笔记】NodeRed 全局变量

2023-08-16 2023-08-18

NodeRed 全局变量

定义全局变量

  • 如果不存在就新增全局变量
  • 如果存在就修改全局变量

<key>:全局变量名
<value>:全局变量值

flow.set("<key>", "<value>");

获取全局变量

flow.get("<key>");

CSDN—— 是潮汕的灿灿展吖


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK