๐พnode.$(), .$all()
select child/children from parent node
๐ฐ JS โฉ DOM โฉ types โฉ Node โฉ node.$()
โฌ๏ธ ้่ฆ๏ผ $(), $all()
// โญ๏ธ node.$(selector)
// โญ๏ธ ๆพๅจ Node ไธ้ขๅฐฑๅฏไปฅๅๆ็จๅจ Element, Document, DocumentFragment ไธโ๏ธ
Node.prototype.$ = function(selector){
return $(selector, this);
};
// โญ๏ธ elem.$all()
Node.prototype.$all = function(selector){
return $all(selector, this);
};
Last updated
Was this helpful?