課程
/前端開發(fā)
/JavaScript
/焦點(diǎn)圖輪播特效
定義沒有問題呀?怎么修改呀?
2017-08-06
源自:焦點(diǎn)圖輪播特效 4-1
正在回答
嗯,是沒有獲取buttons的原因。我也遇到過這個(gè)問題。
這是因?yàn)槟銢]有先獲取buttons,檢查一下你前面有沒有
var?buttons?=?document.getElementById('buttons');
舉報(bào)
通過本教程學(xué)習(xí)您將能掌握非常實(shí)用的焦點(diǎn)圖輪播特效的制作過程
2 回答Uncaught TypeError: Cannot set property 'className' of undefined
1 回答Uncaught TypeError: Cannot set property 'className' of undefined
1 回答我復(fù)制了一遍函數(shù),但總顯示Cannot read property 'left' of underdifined是腫么回事
1 回答container.onmouseover=stop; container.onmouseout=play;為什么顯示cannot set porperty "onmouseover" null
5 回答還是覺得for(i=0;i<buttons.length;i++){ if(buttons[i].className=='on'){ buttons[i].className=''; break; } 這里有點(diǎn)難理解,這里的i會(huì)變嗎?每次調(diào)用的時(shí)候是怎么運(yùn)行的呢
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-08-30
嗯,是沒有獲取buttons的原因。我也遇到過這個(gè)問題。
2017-08-08
這是因?yàn)槟銢]有先獲取buttons,檢查一下你前面有沒有