??????????????С??-DOM???????
???????????? ???????[ 2014/5/29 14:41:51 ] ????????????? ?????????
????6??????HTML??????HTMLElement???????????????Element?????磺HTMLBodyElement??HTMLFormElement??HTMLFrameElement?????IE???????????????????Щ????????????????IE?н?comment??????element?????????????????document.getElementsByTagName('*')??comment???????????
????7??html?????Attribute?????????Property??????????????
?????????????????????getAttribute()??setAttribute()??removeAttribute()?????????????????????HTMLElement????????????????????(id??class??title??lang??dir)???????????????磺<div id="element" myAttr="myself"></div> element.getAttribute("myAttr")??
???????????????????javascript??????????????????п??????????????????????innerHTML??nodeType???
????????????????html????????У??????????(????????)????????????css????????????????????????????
????8??element.attributes?????????NamedNodeMap??????NodeList????????????????????element?????????????IE?л??????п??????????????????????????????specified????????????true??????????????
????9??IE9???????????????????????£?
1 <ul id="mylist">
2 <li>li1</li>
3 <li>li2</li>
4 <li>li3</li>
5 </ul>
6 mylist.childNodes === 3; //IE8
7 mylist.childNodes === 7; //FF
|
1 childElementCount //??????????????
2 firstElementChild //????????????
3 lastElementChild //????????????
4 previousElementSibling //??????????
5 nextElementSibling //???????????
6 children //???????е????????
|
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11