![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
WEB前端
androidrlj
这个作者很懒,什么都没留下…
展开
-
通过JS获取手机浏览器的类型
//浏览器运行环境相关信息 var u = navigator.userAgent; iBrowser = { //是否为移动终端 ,/Mobile/i.test(u) 与 /AppleWebKit.*Mobile/i.test(u)重复,后期再看具体怎么区分 mobile: /Mobile/i.test(u) || /App原创 2014-11-14 13:54:32 · 991 阅读 · 0 评论 -
js计算流量值的方法
//计算流量值( flowVlueBytes为流量的bytes字节数)function getFlow(flowVlueBytes){ var flow = ""; //如果赠送流量小于1MB.则显示为KB if(flowVlueBytes/1024 flow = (Math.round(flowVlueBytes/1024) > 0 ? Ma原创 2014-11-14 13:57:06 · 3016 阅读 · 0 评论