-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for..of 并不适用遍历 类数组对象 #30
Comments
for of MDN 自定义类数组不支持 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
壹2.9.2的总结这里
总结:
for..of适用遍历数组/类数组对象/字符串/map/set等拥有迭代器对象的集合,但是不能遍历对象,因为没有迭代器对象。遍历对象通常用for...in来遍历对象的键名。
The text was updated successfully, but these errors were encountered: