示例#1
0
 /**
  * 设备是否支持Touch
  *
  * @use HttpIO::is_mobile
  * @return bool
  */
 public static function is_support_touch()
 {
     if (HttpIO::is_mobile()) {
         return true;
     }
     $user_agent = strtolower(HttpIO::USER_AGENT);
     if (strpos($user_agent, 'touch')) {
         return true;
     } else {
         return false;
     }
 }