<script type="text/javascript">(function(Switch) { var switch_pc = window.location.hash; var curURL = document.location.href; //当前URL var isMobile = curURL.indexOf("http://m."); //判断当前URL是否是手机站 var isPc = curURL.indexOf("http://www."); //判断当前URL是否包含"http://www." if (isMobile < 0) { //不是手机站 if (isPc < 0) { //不包含"http://www." var thisURL = curURL.replace(/^http:\/\//, "http://m."); } else { // 包含"http://www." var thisURL = curURL.replace(/^http:\/\/www\./, "http://m."); } } if (switch_pc != "#pc") { if (/iphone|ipod|ipad|ipad|Android|nokia|blackberry|webos|webos|webmate|bada|lg|ucweb|skyfire|sony|ericsson|mot|samsung|sgh|lg|philips|panasonic|alcatel|lenovo|cldc|midp|wap|mobile/i.test(navigator.userAgent.toLowerCase())) { Switch.location.href = thisURL; } document.write('<meta name="mobile-agent" content="format=html5;url=' + thisURL + '" />'); } })(window);</script>
纯js性 简单快速 功能少 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <titl...
简要教程 aos.js是一款效果超赞的页面滚动米素动画jQuery动画库插件。该动画库可以在页面滚动时提供28种不同的米素动画效果,以及多种easing效果。在页面往回滚动时,米素会恢复到原来的状态...
分享两个版本的网站运行时间代码 PHP版本 显示为 本站运行:3年9月10天 <?php date_default_timezone_set('Asia/Shanghai')...
首先引入jQuery js代码如下 $(function(){ //当滚动条的位置处于距顶部100像素以下时,跳转链接出现,否则消失 $(function () { ...
本文是利用js代码批量自动取消抖音所有关注 解放双手 有时候我们抖音关注的人太多,想要批量取消但是一个一个点击太麻烦了,如何解放双手批量取消关注呢?所以思源研究了一下,写了一段js代码,在线...
js 判断页面切换时,标题改变 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"&...