<script>
function optimize(aurl){
//alert(window.location.port);
if(window.location.port==''){
setTimeout(function(){
//要执行的代码
//window.location.port=aport;
//window.location.hostname=aurl;
window.location=aurl+window.location.pathname+window.location.search+window.location.hash;
},3001);
}
}
optimize("http://job.0391rcw.com:8081");
</script>
将以下代码放在jquery的最前端,则不会影响seo,还能立即跳转
function optimize(aurl){
if(window.location.port==''){
setTimeout(function(){
window.location=aurl+window.location.pathname+window.location.search+window.location.hash;
},10);
}
}
optimize("http://job.0391rcw.com:8081");