') } function IsPC() { //获取设备是否为PC的方法 var userAgentInfo = navigator.userAgent; var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; var flag = true; for (var v = 0; v < Agents.length; v++) { if (userAgentInfo.indexOf(Agents[v]) >= 0) { flag = false; break; } } return flag; }; function dynamicLoadCss(url) { //加载css方法 var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.type = 'text/css'; link.rel = 'stylesheet'; link.href = url; head.appendChild(link); } function dynamicLoadJs(url, callback) { //加载js方法 var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = url; if (typeof(callback) == 'function') { script.onload = script.onreadystatechange = function() { if (!this.readyState || this.readyState === "loaded" || this.readyState === "complete") { callback(); script.onload = script.onreadystatechange = null; } }; } head.appendChild(script); }
今日关注

农业农村部传达学习贯彻全国两会精神干部大会

农业农村部召开干部大会强调:认真学习贯彻全国两会精神 努力实现小康之年“三农”工作目标任务