1
我知道我可以从Arg结构中获得用户代理,但我怎么能告诉它是从移动浏览器(即android或iPhone Safari),然后重定向到适当的手机页面?如何检测雅可福(erlang)中的移动浏览器
我知道我可以从Arg结构中获得用户代理,但我怎么能告诉它是从移动浏览器(即android或iPhone Safari),然后重定向到适当的手机页面?如何检测雅可福(erlang)中的移动浏览器
您可能首先想要read up on the pros and cons of detection via the user agent。一旦你决定如何继续,你仍然想要使用重定向,你可以使用the redirection support in Yaws重定向到不同的页面。
这是一个简单的网站,需要一个移动版本。重定向确实有帮助,我正在使用re:run来处理它。谢谢 – KudoofTheQ 2013-03-10 17:37:45