对于自定义函数:
function fun(a,b) {
console.log(a);
}
在chrome的开发工具中打印window对象,发现有自定义的函数fun和自有函数getComputedStyle.
其中fun函数的形参有两个,所以length属性为2,getComputedStyle形参有一个,所以length为1,
那么为何显示fun:function fun(a,b)
却不显示 getComputedStyle:function getComputedStyle(形参1,形参2)呢?
烙印99
相关分类