摘要: 方法一,摘自discuz/** * * 根据php的$_SERVER['HTTP_USER_AGENT'] 中各种浏览器访问时所包含各个浏览器特定的字符串来判断是属于PC还是移动端 * @author discuz3x * @lastmodify 2014-04-09 * @return BOOL */function checkmobile() { global $_G; $mobile = array();//各个触控浏览器中$_SERVER['HTTP_USER_AGENT']所包含的字符串数组 static $touchbrowser_list =arr 阅读全文
posted @ 2014-04-09 13:57 scofi 阅读(40437) 评论(0) 推荐(1) 编辑