扫码关注官方订阅号
chrome中原生的$和$$是什么方法?哪里可以查到文档?$$返回的是ArrayquerySelectorAll返回的是NodeListgetElementsByXXX返回的是HTMLCollection
$
$$
querySelectorAll
getElementsByXXX
小伙看你根骨奇佳,潜力无限,来学PHP伐。
$ document.querySelector$$ document.querySelectorAll
document.querySelector
document.querySelectorAll
$ => document.querySelector$$ => document.querySelectorAll
$ => document.querySelector
$$ => document.querySelectorAll
window.$ = document.querySelector.bind(document) window.$$ = document.querySelectorAll.bind(document)
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
$
document.querySelector$$
document.querySelectorAll$ => document.querySelector$$ => document.querySelectorAll