Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要能够检测我的网页是否在 OS 7 之前的黑莓上运行。
我需要能够告诉用户某些元素将无法正常工作。
这可能吗?
从用户代理中,您可以检测到用户正在使用什么设备。
您可以使用这个很棒的链接http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/How-to-detect-the-BlackBerry-Browser/ta-p/559862
BlackBerry Bold 9900 智能手机的示例用户代理:
Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en-US) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.0.0 Mobile Safari/534.11+