経験は何よりも饒舌

10年後に真価を発揮するかもしれないブログ 

2020-11-23から1日間の記事一覧

jQueryはいかにしてDOMを取得するか(3)

wafuwafu13.hatenadiary.comいよいよ今回は、以下のHTMLを用意して実際にDOMを取得していく。 <html> <head> <script src="https://code.jquery.com/jquery-3.5.1.js"></script> </head> <body> <h1 id="hello">hello world</h1> <script> console.log($('#hello')) </script> </body> </html> まずは前回と同じように、3133行目に定義されている関数の引数に何が入ってい…