From 1f11157b90221d5f212fbfe6d5a720d0c2a21f1f Mon Sep 17 00:00:00 2001 From: ethan <690167690@qq.com> Date: Mon, 10 Jan 2022 23:47:04 +0800 Subject: Fix mistranslation in Web/JavaScript/Reference/Global_Objects/Function/length, zh-CN (#3582) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “指该函数有多少个必须要传入的参数”改为“指该函数期望传入的参数数量” 翻译成“必须要传入”跟实际含义不符。原文“and indicates how many arguments the function expects,” --- .../web/javascript/reference/global_objects/function/length/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web') diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/length/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/length/index.html index 9804d07a75..42532bd8ad 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/function/length/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/function/length/index.html @@ -17,7 +17,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function/length
length
是函数对象的一个属性值,指该函数有多少个必须要传入的参数,即形参的个数。
length
是函数对象的一个属性值,指该函数期望传入的参数数量,即形参的个数。
形参的数量不包括剩余参数个数,仅包括第一个具有默认值之前的参数个数。
-- cgit v1.2.3-54-g00ecf