首次进入网页较短时间自动跳商务通,之后延长点时间跳商务通

function getCookie(cookieName) {
var strCookie = document.cookie;
var arrCookie = strCookie.split("; ");
for(var i = 0; i < arrCookie.length; i++){
var arr = arrCookie[i].split("=");
if(cookieName == arr[0]){
return arr[1];
}
}
return "";
}
var backVisitResut=getCookie("firstVisit");
var firstVisitResut=location.href;
if(backVisitResut=='undefined'||backVisitResut!=firstVisitResut){
document.cookie="firstVisit="+firstVisitResut;
setTimeout(function(){location.href="/service.html?firstsecond"},首次进入网页较短时间自动跳商务通)
}else{
setTimeout(function(){location.href="/service.html?stillsecond"},之后延长点时间跳商务通)
}
已邀请:

要回复问题请先登录注册