是有可能得到一个函数的函数内单个对象的所有参数? [英] is it possible to get all arguments of a function as single object inside that function?
本文介绍了是有可能得到一个函数的函数内单个对象的所有参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
就像在PHP中有 func_num_args
和 func_get_args
?
推荐答案
使用参数
。您可以访问它像一个数组。使用与arguments.length
为参数的个数。
Use arguments
. You can access it like an array. Use arguments.length
for the number of arguments.
这篇关于是有可能得到一个函数的函数内单个对象的所有参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文