var pic = document.getElementById('picChange'); var picList = pic.getElementsByTagName("li"); alert(picList[0].firstChild); 以上代碼2請(qǐng)分別在Firefox和IE中運(yùn)行,Firefox出現(xiàn)的是 [object HTMLImageElement] ,而IE中出現(xiàn)的是[object],這里IE和Firefox都把picList[0].firstChild這個(gè)對(duì)象當(dāng)作object對(duì)...
www.dbjr.com.cn/article/252...htm 2025-5-31