Remove old leagcy wording from file node info (Chinese)

This commit is contained in:
Kazuhito Yokoi
2020-03-13 21:38:23 +09:00
parent a9508a2c04
commit c700d5c922
2 changed files with 4 additions and 12 deletions

View File

@@ -14,7 +14,7 @@
limitations under the License.
-->
<script type="text/x-red" data-help-name="file">
<script type="text/html" data-help-name="file">
<p><code>msg.payload</code></p>
<h3>输入</h3>
<dl class="message-properties">
@@ -31,7 +31,7 @@
<p>您可以将此节点配置为删除文件</p>
</script>
<script type="text/x-red" data-help-name="file in">
<script type="text/html" data-help-name="file in">
<p>以字符串或二进制缓冲区的形式读取文件的内容</p>
<h3>输入</h3>
<dl class="message-properties">
@@ -44,8 +44,6 @@
<dd>文件的内容可以是字符串也可以是二进制的buffer</dd>
<dt class="optional">filename <span class="property-type">字符串</span></dt>
<dd>如果未在节点配置中设置该属性可以选择要读取的文件名</dd>
<dt class="optional">error <span class="property-type">object</span></dt>
<dd><i>已不推荐使用</i>: <code></code><code>error</code> </dd>
</dl>
<h3>详细</h3>
<p>文件名应该是绝对路径否则将相对于Node-RED进程的工作目录</p>
@@ -53,7 +51,5 @@
<p>可以选择将文本文件拆分为几行每行输出一条消息或者将二进制文件拆分为较小的buffer块-块大小取决于操作系统但通常为64kLinux/Mac或41kWindows</p>
<p>当拆分为多条消息时每条消息将具有<code>parts</code></p>
<p>如果输出格式为字符串则可以从编码列表中指定输入数据的编码</p>
<h4>旧版的错误处理</h4>
<p>在Node-RED 0.17之前如果此节点在读取文件时遇到错误它将发送一条不包含<code>msg.payload</code><code>msg.error</code><code>msg.error</code></p>
<p>应该使用Catch节点来捕获并处理错误</p>
</script>