比如以下函数,看起来不属于任何对象,但它是一个全局对象。 它属于 HTML页面的函数。
return a * b; } window.myFunction(2, 3);
myFunction 会变成 window对象的一个函数。