Home  >  Article  >  Web Front-end  >  Firefox/Chrome/Safari的中可直接使用$/$$函数进行调试_javascript技巧

Firefox/Chrome/Safari的中可直接使用$/$$函数进行调试_javascript技巧

WBOY
WBOYOriginal
2016-05-16 17:56:141048browse

接着在各个浏览器中测试,发现Firefox/Chrome/Safari中有,IE9/Opera没有。

$ 相当于 document.getElementById
$$ 相当于 document.querySelectorAll
在chrome控制台敲$,$$一目了然

 

这两个函数都是浏览器调试工具自带的。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn