
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 · 1040 阅读 · 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 · 3179 阅读 · 0 评论