---
title: "检查并显示mobile页面"
author: "yang_kunlun"
date: "2010-03-05T13:39:47Z"
tags: []
categories: ["移动开发"]
slug: "mobile"
draft: false
lastmod: "2010-03-05T13:39:47Z"
id: 608672
url: "https://firemagic.iteye.com/blog/608672"
---

根据user_agent判断是否是手机设备
    request.user_agent =~ /Mobile|webOS/