1
0
镜像自地址 https://github.com/coolaj86/ajquery.js.git 已同步 2024-11-16 17:29:02 +00:00

Use Array.from() in $$

这个提交包含在:
Simon Willison 2021-12-14 17:27:00 -08:00 提交者 AJ ONeal
父节点 ceda8242d9
当前提交 c50bcca6ca

查看文件

@ -3,5 +3,5 @@ function $(sel, el) {
}
function $$(sel, el) {
return (el || document).querySelectorAll(sel);
return Array.from((el || document).querySelectorAll(sel));
}