1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/packages/node_modules/@node-red/nodes/locales/zh-CN/function/10-switch.html

38 lines
2.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
Copyright JS Foundation and other contributors, http://js.foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/x-red" data-help-name="switch">
<p>按属性值来分配消息的传送路线</p>
<h3>详细</h3>
<p>根据接收到的消息评估指定的规则然后将消息发送到与匹配的规则相对应的输出端口</p>
<p>可以将节点设置为一旦发现一个匹配的规则则停止后续的匹配</p>
<p>对于评估规则可以使用消息属性流上下文/全局上下文属性环境变量和JSONata表达式的评估结果</p>
<h4>规则</h4>
<p>有四种规则</p>
<ol>
<li><b></b></li>
<li><b>顺序</b></li>
<li><b>JSONata表达式</b></li>
<li><b>其他</b></li>
</ol>
<h4>注释</h4>
<p><code>is true/false</code><code>is null</code> </p>
<p><code>is empty</code><code>null</code><code>undefined</code></p>
<h4>处理消息序列</h4>
<p>默认情况下节点不会修改<code>msg.parts</code></p>
<p>可以启用<b>重建消息序列</b><code>nodeMessageBufferMaxLength</code></p>
</script>