如果定時(shí)器里有參數(shù)怎么寫直接寫不行,方法外加"也不行
timer?=?setInterval(autoPlay,?2000); //autoChange(timer); //自動(dòng)播放 function?autoPlay(){ ????index++; ????if?(index?>=?titles.length){ ????????index?=?0; ????} ????changeOption(index); }
如果在auto中加參數(shù)就只能執(zhí)行一次了
2016-01-06