0
下面的代碼在chrome和ff中運行良好,但是#cf_intro中的內容不會隨着IE中的定時器而改變。 (「流」是一個插件對象。)
爲什麼jQuery中的html()函數在IE中不起作用
timer=setInterval("m2n()",10000);
function m2n()
{
Flow.moveTo("next");
var activeItemIntro=$('.active canvas').attr("intro");
$("#cf_intro").html(activeItemIntro);
}
$(function(){
function cf_timer(){
timer=setInterval("m2n()",10000);
}
$('.flow').mouseover(function(){
clearInterval(timer);
})
$('.flow').mouseout(function(){
cf_timer();
})
})
你使用的是支持畫布的IE版本嗎? (例如IE9?) – Timbo
'attr(「intro」)'?如果你使用HTML,這可能會有所幫助。 – Quentin