var html=document.documentElement; alert(html==document.childNodes[0]);//false
alert(html==document.firstChild);//false
為什么在js高級程序設計書上,后兩行代碼的返回值為true?而我測試的結果卻是false?
躍然一笑
2018-09-07 18:13:43