2022沈阳工程学院考研分数线

function parseurl(url) {
var a = document.createelement(‘a’);
a.href = url;
return {
source: url,
protocol: a.protocol.replace(‘:’,”),
host: a.hostname,
port: a.port,
query: a.search,
params: (function(){
var ret = {},
seg = a.search.replace(/^\?/,”).split(‘&’),
len = seg.length, i = 0, s;
for (;i<len;i++) {
if (!seg[i]) { continue; }
s = seg[i].split('=');
ret[s[0]] = s[1];
}
return ret;
})(),
file: (a.pathname.match(/\/([^\/?#]+)$/i) || [,''])[1],
hash: a.hash.replace('#',''),
path: a.pathname.replace(/^([^\/])/,'/$1'),
relative: (a.href.match(/tps?:\/\/[^\/]+(.+)/) || [,''])[1],
segments: a.pathname.replace(/^\//,'').split('/')
};
}
//pc端跳转到移动端
var parseurlobj=parseurl(location.href);
//var domaintow=parseurlobj.host.split('.')[0]=='www'?parseurlobj.host.split('.')[1]:parseurlobj.host.split('.')[0];
var domaintow=parseurlobj.host.split('.')[0];
var newhref='http://mtoutiao.xdf.cn/'+domaintow+parseurlobj.path+parseurlobj.query;
var ismobile=/android|webos|iphone|ipod|blackberry|ipad|mobile/i.test(navigator.useragent) ? true : false;
if(ismobile){
location.href=newhref;
}

2022沈阳工程学院考研分数线-考研网

资讯详情

var curprotocol = window.location.protocol.split(‘:’)[0];
var scripthead = document.createelement(‘script’);
scripthead.type = ‘text/javascript’; scripthead.async = true;
scripthead.src = curprotocol === ‘https’ ? ‘https://www.xdf.cn/zhuanti/tongji/head.js’ : ‘http://www.xdf.cn/zhuanti/tongji/head.js’
document.getelementsbytagname(‘head’)[0].appendchild(scripthead)

window.config = {
typeid: “1046”,
aid: “11783567”,
citycode: “”,
cityid: “”,
productcategory: “87”,
studyperiodcode: “”,
gradecode:””,
totalpage: “1”,
currentpage: “1”
}

<!– 注意,此script 必须放在标签后面 –>

xdfinitplumbertraceandgio(
{
isloadedvisibleexposure: false,
webjssdkoptions: {
appname: ‘pc_newwebsite’,
uuid: ”,
},
},
{
isloadedgio: true,
gioprojectid: ‘bb774449518827a0’,
gioconfig: {
debug: “false”,
platform: ‘web’,
},
},
);

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注