Javascript get all Properties of Object
This question already has an answer here:
By using
for(var property in Object) {
console.log(property);
}
you will get key of each element, If that property is a function and you want to use values than use
Object[property]
链接地址: http://www.djcxy.com/p/28838.html