对象拥有属性和方法,函数可以认为是属性,所以函数是对象的某个方法。
比如:
function test() { // 这个函数的所有者就是window对象}console.log(window.test)