The properties have a div print out

How to attribute a simple div elements are printed out?

Here is a magical code

var docu = document.createElement('div')
var str = '';
for(var key in docu){
	str += key+',';
}
console.log(str);

Renderings:
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_24147051/article/details/95060889