github

Console - Utilities Function

$, $$

for (let btn of $$('.btn')) console.log(btn.textContent)

debug

debug(onClickDebugBtn)

在 Console 輸入後按下按鈕來觸發 Debugger ->

monitor

monitor(echo)

開始後每秒執行一次 echo(performance.now()) ->

monitorEvents

😀
😍

monitorEvents($('.emojis'), ['mouse'])

unmonitorEvents($('.emojis'), ['mouse'])

getEventListeners

getEventListeners($('.cat'))

🐱

copy

fetch('meow.json').then((r) => r.json()).then(copy)