zoukankan      html  css  js  c++  java
  • 移动设备篇

        <script type="text/javascript">
    	    //判断移动设备
    		var cs = window.navigator.userAgent.toLowerCase();
    		//alert(cs);
    		if (cs.indexOf('android') != -1) {
    			location.replace('m-index.html');
    		} else if (cs.indexOf('iphone') != -1) {
    			location.replace('m-index.html');
    		}
    		else if (cs.indexOf('ucbrowser') != -1) {
    			location.replace('m-index.html');
    		}
    	</script>

        <script>
        //判断移动设备
            document.write('<script src='
            +
            ('__proto__' in
            {} ? 'zepto' :
            'jquery') +
            '.js></script>')
        </script>


    调用移动电话
    tel:027-85829990

    调用百度手机网页版地图
    http://developer.baidu.com/map/wiki/index.php?title=uri/api/web#.E5.9C.B0.E5.9B.BE.E6.A0.87.E7.82.B9.E5.8A.9F.E8.83.BD
    http://api.map.baidu.com/marker?location=114.278714,30.592183&title=我的位置&content=湖北省武汉市&output=html
  • 相关阅读:
    申请奖励加分
    寒假学习01
    加分项及建议
    12月30日总结
    12月17日 期末总结
    12月31日总结
    12月15日总结
    12月28日总结
    01月03日总结
    01月05日总结
  • 原文地址:https://www.cnblogs.com/RedRoshan/p/3824070.html
Copyright © 2011-2022 走看看