如何在Grails 3.0中使用Ajax构建下拉动态 [英] How to build a drop down dymic using ajax in Grails 3.0

查看:58
本文介绍了如何在Grails 3.0中使用Ajax构建下拉动态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Ajax通过动态负载构建下拉列表?例如,州下拉菜单在onchange选项中执行一种方法,以加载其他城市下拉菜单.我尝试使用标签g:remoteFunction,但在3.0版中不存在.

How I can build a drop down with dynamic load using Ajax? For example a drop down of states execute a method in onchange option for load a other drop down of cities. I try use the tag g:remoteFunction but it does not exist in the version 3.0.

对不起,我的英语不好.

Sorry for my bad english.

推荐答案

Grails 3的g:remoteFunction标签库位于

The g:remoteFunction taglib for Grails 3 is in the ajax-tags plugin. The Maven artifact is org.grails.plugins:ajax-tags:1.0.0

这篇关于如何在Grails 3.0中使用Ajax构建下拉动态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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