2013-10-25から1日間の記事一覧
ノードの種類は node.nodeType で取得できる。 var node = document.body.firstChild; console.log(node.nodeType); 比較は Node オブジェクトに定義された定数を使って行える。 console.log(node.nodeType === Node.TEXT_NODE); Internet Explorer 8 以前で…
ノードの種類は node.nodeType で取得できる。 var node = document.body.firstChild; console.log(node.nodeType); 比較は Node オブジェクトに定義された定数を使って行える。 console.log(node.nodeType === Node.TEXT_NODE); Internet Explorer 8 以前で…