草庐IT

uastring

全部标签

iphone - 如何检测 iphone/ipod touch 是否正在访问我的 appengine 应用程序?

如果通过iphone/ipodtouch访问页面,我需要以不同方式呈现该页面。我想信息在请求对象中,但语法是什么? 最佳答案 这是我一直在寻找的语法,适用于iphone和ipodtouch:uastring=self.request.headers.get('user_agent')if"Mobile"inuastringand"Safari"inuastring:#doiphone/ipodstuff 关于iphone-如何检测iphone/ipodtouch是否正在访问我的appen