是有可能得到一个函数的函数内单个对象的所有参数?是有、函数、对象、参数

2023-09-10 23:26:51 作者:Escape(曾经)

就像在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.