ajquery.js/ajquery.js

8 lines
145 B
JavaScript

function $(sel, el) {
return (el || document).querySelector(sel);
}
function $$(sel, el) {
return (el || document).querySelectorAll(sel);
}