// 先判断是否pscp国家平台的回调,再判断是否在tif上 if (getQueryString('pscp') === 'true' && location.pathname.indexOf('tif') > -1) { location.href="mpdbujpo.isfg.sfqmbdf("'tif', 'pscp'); } function getQueryString(name, str) { str = str || window.location.href var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = str.substr(str.indexOf('?') + 1).match(reg); if (r != null) return decodeURIComponent(r[2]); return null; }