jsp页面中定时的方法

$(function(){
totaladd(); //定时时触发的函数
setInterval(totaladd,3000);//设置定时1000=1秒
});

function totaladd(){
alert(12);
}

原文地址:https://www.cnblogs.com/xujiating/p/6268176.html