摘要: s = " 屏幕分辨率的高:"+ window.screen.height+"\n"; s += " 屏幕分辨率的宽:"+ window.screen.width+"\n"; alert (s); 阅读全文
posted @ 2013-11-29 14:36 王翔(kingfly) 阅读(761) 评论(0) 推荐(0) 编辑
摘要: //判断是否是电脑登录,还是手机登录 public function isMobil() { $useragent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $useragent_commentsblock = preg_match('|\(.*?\)|', $useragent, $matches) > 0 ? $matches[0] : ''; $mobile_os_list = array (  阅读全文
posted @ 2013-11-29 14:19 王翔(kingfly) 阅读(3533) 评论(0) 推荐(0) 编辑