• <small id='0xJMW'></small><noframes id='0xJMW'>

    <i id='0xJMW'><tr id='0xJMW'><dt id='0xJMW'><q id='0xJMW'><span id='0xJMW'><b id='0xJMW'><form id='0xJMW'><ins id='0xJMW'></ins><ul id='0xJMW'></ul><sub id='0xJMW'></sub></form><legend id='0xJMW'></legend><bdo id='0xJMW'><pre id='0xJMW'><center id='0xJMW'></center></pre></bdo></b><th id='0xJMW'></th></span></q></dt></tr></i><div id='0xJMW'><tfoot id='0xJMW'></tfoot><dl id='0xJMW'><fieldset id='0xJMW'></fieldset></dl></div>

  • <legend id='0xJMW'><style id='0xJMW'><dir id='0xJMW'><q id='0xJMW'></q></dir></style></legend>

      1. <tfoot id='0xJMW'></tfoot>
          <bdo id='0xJMW'></bdo><ul id='0xJMW'></ul>

        Javascript:参数数组是否已弃用?

        时间:2023-10-21
        <tfoot id='UdqdB'></tfoot>
            <tbody id='UdqdB'></tbody>

            • <i id='UdqdB'><tr id='UdqdB'><dt id='UdqdB'><q id='UdqdB'><span id='UdqdB'><b id='UdqdB'><form id='UdqdB'><ins id='UdqdB'></ins><ul id='UdqdB'></ul><sub id='UdqdB'></sub></form><legend id='UdqdB'></legend><bdo id='UdqdB'><pre id='UdqdB'><center id='UdqdB'></center></pre></bdo></b><th id='UdqdB'></th></span></q></dt></tr></i><div id='UdqdB'><tfoot id='UdqdB'></tfoot><dl id='UdqdB'><fieldset id='UdqdB'></fieldset></dl></div>

                  <bdo id='UdqdB'></bdo><ul id='UdqdB'></ul>

                  <legend id='UdqdB'><style id='UdqdB'><dir id='UdqdB'><q id='UdqdB'></q></dir></style></legend>

                  <small id='UdqdB'></small><noframes id='UdqdB'>

                  本文介绍了Javascript:参数数组是否已弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  大多数网站都说被调用者"作为 Function.arguments 的属性已被弃用.但是有些网站走得更远,说整个 Functions.argument 已被弃用,例如http://aptana.com/reference/api/Arguments.html 如果整个例程是死在水里?我刚刚发现参数",它似乎非常有用例如:http://hungred.com/how-to/secret-arguments-array-javascript/

                  Most sites say "callee" as a property of Function.arguments is deprecated. But some sites go further and say the whole of Functions.argument is deprecated E.g. http://aptana.com/reference/api/Arguments.html Why only mention callee if the whole routine is dead in the water? I only just discovered "arguments" and it seems incredibly useful E.g: http://hungred.com/how-to/secret-arguments-array-javascript/

                  推荐答案

                  Function.arguments is 已弃用,但它只是弃用了原版 arguments 在函数中可用的对象.(例如,使用 x = arguments[i]; 而不是 x = theFunc.arguments[i];)

                  Function.arguments is deprecated, but it's only deprecated in favor of the vanilla arguments object that's available within a function. (e.g. using x = arguments[i]; instead of x = theFunc.arguments[i];)

                  现在这是访问收到的序数参数的首选方法(正如您所说,非常有用).

                  That's now the preferred (and as you say, extremely useful) method for accessing the ordinal arguments received.

                  这篇关于Javascript:参数数组是否已弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:函数的 JavaScript 参数中的花括号 下一篇:在 javascript 中只传递第二个参数

                  相关文章

                  1. <small id='3V4OI'></small><noframes id='3V4OI'>

                    1. <tfoot id='3V4OI'></tfoot>
                    2. <legend id='3V4OI'><style id='3V4OI'><dir id='3V4OI'><q id='3V4OI'></q></dir></style></legend>

                    3. <i id='3V4OI'><tr id='3V4OI'><dt id='3V4OI'><q id='3V4OI'><span id='3V4OI'><b id='3V4OI'><form id='3V4OI'><ins id='3V4OI'></ins><ul id='3V4OI'></ul><sub id='3V4OI'></sub></form><legend id='3V4OI'></legend><bdo id='3V4OI'><pre id='3V4OI'><center id='3V4OI'></center></pre></bdo></b><th id='3V4OI'></th></span></q></dt></tr></i><div id='3V4OI'><tfoot id='3V4OI'></tfoot><dl id='3V4OI'><fieldset id='3V4OI'></fieldset></dl></div>

                        <bdo id='3V4OI'></bdo><ul id='3V4OI'></ul>