第498天 列举出JS的全局函数 [3+1官网](http://www.h-camel.com/index.html) [我也要出题](http://www.h-camel.com/contribution.html)
Activity
chuanxinwong commentedon Aug 26, 2020
for(var key in window){
if(typeof window[key] == 'function'){
console.log(key)
}
}
yjhtry commentedon Aug 27, 2020
const a = Object.getOwnPropertyNames(window); for (let i = 0; i < a.length; ++i) { if (typeof window[a[i]] === "function") { console.log(a[i]); } }