联 系 人:李总
联系电话:13759574266
在线 QQ:89417157
邮箱:13759574266@qq.com
微信号:ynlongtou
地址:昆明市滇缅大道旁昆建路5号108智库空间A座4楼
判断浏览器是手机还是pc
<script type="text/javascript">
var type = navigator.userAgent.match(/.*Mobile.*/)?"mobile":"pc";
if(type=="pc"){
$.getScript("http://vc3.cn/Public/home/js/jquery.flexslider.js",function(){
});
}
</script>
jquery的写法
<script type="text/javascript">
var strFullPath=window.location.href;
var strPath=window.location.pathname;
var pos=strFullPath.indexOf(strPath);
var prePath=strFullPath.substring(0,pos);
if($(window).width()>789){
$.getScript(prePath+"/Public/home/js/jquery.flexslider.js",function(){});
}
</script>
更多云南龙头科技有限公司网站案例请查看:http://www.ynlongtou.com/case.asp?id=3
云南龙头科技有限公司凭借多年的网站建设经验,坚持以“帮助中小企业实现网络营销化”为宗旨,成功帮助多家中小企业实现互联网信息化建设,得到了客户的一致好评。如你有任何关于网站建设的疑问,请立即点击咨询云南龙头科技有限公司资深营销专家或拨打咨询热线:13759574266,我们会详细为你一一解答你心中的疑难。
扫描关注官方微信