for..in与for..of比较 ZhangCheng15737 2018-05-24 208 阅读1分钟 你知道这两者之间的区别么? for..in for..of Apply to Enumerable properties Iterable Collections Use with Objects ? Yes No Use with Array ? yes, but not advised yes Use with String ? yes, but not advised yes