debugging - Interface of an element in JavaScript -
in chrome, when debugging in javascript, interesting interface of element.
typing variable name holds element in console gives me element tag. how can interface matching element. chrome outputs it, gives tag. unsure how chrome returns value.
browsers try smart when displaying things via console.log
make output more readable. if want consistently tree of properties can navigate through, can use console.dir
.
interface
has no meaning in js , specific meaning in other languages. can potentially see webidl interface of dom element viewing prototype of element using console.log(element.__proto__);
entirely browser dependent , non-standard.
Comments
Post a Comment