for..in loops iterate over the entire prototype chain, which is virtually never what you want.
意思是使用for..in会遍历整个原型链,这样不是很好的实现方法,推荐使用Object.keys
————————————————
版权声明:本文为CSDN博主「咕噜咕噜的车轮向前」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/zhongmei121/article/details/105536527