// If you do not know how to write style property which objects can be output in the console style attributes
all attributes style will appear
in addition can also check whether a property supports different browsers, vendors need to add prefix
1 console.log ( document.querySelector ( 'a') style) ;. // view of an object pattern 2 the console.log (document.body.style); // view an object's style . 4 the console.log (document.querySelector ( ' . a ') attributes); // view an object's properties
3 console.log (document.body.stylesss); // attribute is undefined undefined
. 5 // the console.log (sfsd); // undefined variables given immediately