Chrome 的幾個輔助 debug 的功能(2)

摘要:Chrome 的幾個輔助 debug 的功能(2)

1. 快速的檢測我們所要看到的 DOM 

如果你在已知 dom id 的情況下 , 就可以藉由這個方式快速的移動到其 html 了


inspect($('#myInput')); 

 

2. 支援 Assert 敘述


console.assert( 1 == 1);

 

3. copy command


copy(document.body.innerText)