// 获取url参数 function QueryString(item) { var wvalue = location.search.match( new RegExp("[?&]" + item + "=([^&]*)(&?)", "i") ); var svalue = location.search.match( new RegExp("[?&]" + item + "=([^&]*)(&?)", "i") ); return svalue ? svalue[1] : svalue; } if (navigator.userAgent.match(/mobile/i)) { window.location = "https://my.cnki.net/m/"; }