gpt4 book ai didi

http - 如何在雅司(erlang)中检测移动浏览器

转载 作者:塔克拉玛干 更新时间:2023-11-01 19:10:43 24 4
gpt4 key购买 nike

我知道我可以从 Arg 结构中获取用户代理,但我如何判断它来自移动浏览器(即 android 或 iPhone Safari),然后重定向到相应的移动页面?

最佳答案

您可能首先想要 read up on the pros and cons of detection via the user agent .一旦你决定如何继续并且你仍然想使用重定向,你可以使用 the redirection support in Yaws重定向到不同的页面。

关于http - 如何在雅司(erlang)中检测移动浏览器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15318563/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com