开发者

window.setInterval jQuery function does not work on IE8

window.setInterval(function(){
   $('#Notify-Bar').ht开发者_JAVA技巧ml('a new notification');
}, 5000);

Did not work on IE, however works fine on other major web browsers (like Chrome, Firefox, Opera)...


You should use something like

setInterval("myFunc()",5000);

function myFunc()
{
    $('#Notify-Bar').html('a new notification');
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜