本文介绍了如何在 Web 应用程序中检测手机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果是 Web 应用程序,您如何确定访问者正在通过手机查看?
If a web application, how can you figure out the visitor is viewing from a mobile phone?
是否也可以找出像黑莓和 iPhone 这样的品牌/型号?
is it also possible figure out the make/model like blackberry versus iphone?
推荐答案
你可以查看他们的 用户代理字符串.
You could check their User-Agent string.
这篇关于如何在 Web 应用程序中检测手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!