gpt4 book ai didi

grails - 在 Grails 应用程序中检测移动设备的最简单方法是什么?

转载 作者:行者123 更新时间:2023-12-01 12:57:50 26 4
gpt4 key购买 nike

我刚开始尝试使用 Grails,想知道检测移动浏览器的简单方法。

我注意到,当我将我的应用程序部署到 tomcat 并在移动设备上访问它时,默认的 Grails View 是移动 View 。如果能够在 Controller 中检测到移动设备并将用户引导至不同的 View ,将会很有用。

最佳答案

我正在使用这个插件...

http://grails.org/plugin/spring-mobile

...这是 Grails 邮件列表中的几个讨论之一...

http://grails.1312388.n4.nabble.com/iPhone-enabling-a-Grails-Web-app-td3206882.html

关于grails - 在 Grails 应用程序中检测移动设备的最简单方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8701230/

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