芥子书屋

关注

关于function的length

芥子书屋

关注

阅读 53

2023-06-26


   问题:Function对象的length是干嘛的?

 

    ------------ 函数期望的参数个数。

 

    举例:

 



function test1(num){
     //...

}

function test2(){
     //...

}

console.log(test1.length);  //1
console.log(test2.length);  //0


 

相关推荐

鲤鱼打个滚

s-function的during flag=n call must be a real vector of length n

鲤鱼打个滚 177 0 0

前程有光

关于C++ 中的const-member function和non-const-member function

前程有光 58 0 0

黄昏孤酒

String.length()和String.getBytes().length的区别

黄昏孤酒 59 0 0

寒羽鹿

关于 SAP ABAP Enqueue Function Module 的输入参数 _wait

寒羽鹿 38 0 0

小月亮06

mysql length()与char_length()

小月亮06 106 0 0

往复随安_5bb5

MySQL中length()、char_length()的区别和用法

往复随安_5bb5 79 0 0

小贴贴纸happy

【Javascript】length属性

小贴贴纸happy 46 0 0

Villagers

从length与length()开始谈Java

Villagers 109 0 0

雨鸣静声

jQuery(function(){})与(function(){})(jQuery)的区别

雨鸣静声 139 0 0

Alex富贵

Wireshark中的length栏位

Alex富贵 24 0 0

精彩评论(0)

0 0 举报