public final class Console extends Object
Modifier and Type | Method and Description |
---|---|
static void |
dir(Object object)
Displays an interactive list of the properties of the specified JavaScript object.
The output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects. In other words, it is the way to see all the properties of a specified JavaScript object in console by which the developer can easily get the properties of the object. |
static void |
dirxml(Object object)
Displays an interactive tree of the descendant elements of the specified XML/HTML element.
If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes. |
static void |
log(Object... objects)
Outputs a message to the Web Console.
|
public static void log(Object... objects)
objects
- a list of JavaScript objects to output.public static void dir(Object object)
object
- a JavaScript object whose properties should be output.public static void dirxml(Object object)
object
- a JavaScript object whose properties should be output.