grails 中的 jquery-ui 自动完成 [英] jquery-ui autocomplete in grails

查看:17
本文介绍了grails 中的 jquery-ui 自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我使用 jquery-ui 自动完成功能的完整步骤.我正在使用 grails 2.0.1.

Can anyone give me the complete steps to work with jquery-ui autocomplete. I am using grails 2.0.1.

我需要一个完整的例子,包括控制器和视图的代码.

I need a complete example including code for controller and views.

提前致谢.

推荐答案

首先你需要在你的 main.gsp (in head) 中添加这个到行

At first you need to add in your main.gsp (in head) this to lines

 <g:javascript library="jquery"/>
 <g:javascript library="jquery-ui"/>

插件会自动下载.

对于完整的示例,您可以使用此链接

and for complete example you can use this link

http://jay-chandran.blogspot.com/2011/09/using-grails-with-jquery-autocomplete.html

这篇关于grails 中的 jquery-ui 自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆