function myFunction(){ return ture; }; if(typeof window.myFuncation === "function"){ alert('==='); }
if(typeof window.myFuncation === "function"){ alert('==='); }
定义了一个函数 myFunction 该命令函数是作为属性添加到 window 对象上
myFunction
window