var a=3,b=4;function h(a,b){return a+b};console.dir(h)
function h(a.b)
arguments: null 这个为啥是null
caller: null
length: 2
name: "h"
prototype:Object
__proto__: function()
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
你打印的是
h不是h()h是函数的引用h()是执行函数另外
h()执行也要传参数,不传参数就是undefined你觉得是什么?
a.b 这个有点抽象