2011-03-26から1日間の記事一覧

jQueryと「生の」javascriptの違い

考え方はXPathと似てるかも。 ①$(selector) //[jQuery Object] は複数のノードっぽいものをいっぺんに扱える。要素なりの集合と思えばいい。 [HTMLCollection]や、[NodeList]では、for文を使って一つ一つ処理する必要がある。

jQuery コア

Core $('selector'); $('selector', parent-element); === $('parent-element').find('selector'); $("raw html", An new map of attr).appendTo("body");