📌  相关文章
📜  chrome 检查器控制台提示 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:57.706000             🧑  作者: Mango

代码示例1
$_                     // Returns the value of the most recently evaluated expression
monitor(function)    // When the function specified is called, a message is logged to the console that indicates the function name along with the arguments that are passed to the function when it was called.
monitorEvents(object[, events]) // When one of the specified events occurs on the specified object, the Event object is logged to the console. You can specify a single event to monitor, an array of events, or one of the generic events "types" mapped to a predefined collection of events
queryObjects(Constructor)         // from the console to return an array of objects that were created with the specified constructor