• <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:参数数组是否已弃用?

        Javascript: is the arguments array deprecated?(Javascript:参数数组是否已弃用?)
        <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:参数数组是否已弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                  getFullYear returns year before on first day of year(getFullYear 在一年的第一天返回前一年)

                      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>
                              <tbody id='3V4OI'></tbody>