(function(doc, win) {
if (screen && screen.width < 600) {
document.write('<link rel="stylesheet" href="./css/m-intro.css">');
document.write('<script type="text/javascript" src="./js/hotcss.js"><\/script>');
}
})(document, window)
由于pc和移动端有不同的逻辑。所以就采用伪响应,在移动端加载上面的脚本和样式,但是uc浏览器打开还是pc上面的样式,也就是上面的脚本好像没生效,其他浏览器打开加载正常的。有遇到过的同学吗,这是什么原因?