jquery暂停几秒再执行函数

2785 查看

例:window.setTimeout(function(){ location.href = loginUrl; },3000);
实现3秒后跳转到登录页面。