for in 和for of

2018-04-19  本文已影响0人  晨晨晨晨辰

for(let a in window){
console.log(a)
}
输出将会打印出所有的window属性

上一篇 下一篇

猜你喜欢

热点阅读