JavaScript
u011634062
这个作者很懒,什么都没留下…
展开
-
根据JS实现伪增长的注册人数
var counter = { init: function () { this.creat(); }, creat: function () { var num = this.grow(); var newArr = []; newArr = String(num).split(""); for (var i = 0; i < newArr.leng原创 2014-03-19 13:38:13 · 638 阅读 · 0 评论 -
JS判断浏览器是PC还是Mobile访问
var _pattern = "android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos|ucweb|rv:1.2.3.4" var _regex = new RegExp(_pattern, "ig"); var _UA = navigator.userAgent; if(_re原创 2014-05-30 18:10:55 · 1115 阅读 · 0 评论