一段js代码,放在html头部,能够实时响应切换url跳转 <script type="text/javascript"> var oWidth = document.documentElement.clientWidth || document.body.clientWidth; if (oWidth < 1024) { window