开发者

window.setInterval jQuery function does not work on IE8

开发者 https://www.devze.com 2023-02-05 10:48 出处:网络
window.setInterval(function(){ $(\'#Notify-Bar\').ht开发者_JAVA技巧ml(\'a new notification\'); }, 5000);
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

精彩评论

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