remoteLink德precated在Grails的2.4,现在该怎么办? [英] remoteLink deprecated in Grails 2.4, now what?

查看:188
本文介绍了remoteLink德precated在Grails的2.4,现在该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Grails中发现2.4文件(<一href="http://grails.org/doc/latest/ref/Tags/remoteLink.html">http://grails.org/doc/latest/ref/Tags/remoteLink.html),它提到remoteLink标签现在是很precated。

I noticed in Grails 2.4 documentation (http://grails.org/doc/latest/ref/Tags/remoteLink.html), it mentioned the remoteLink tag is now deprecated.

但我不明白的警告,第二部分:

But I don't understand the second part of the warning:

应用程序可以提供自己的Ajax标签和/或JavaScript的插件可以提供自己的Ajax标签。

"Applications may provide their own Ajax tags and/or Javascript plugins may provide Ajax tags of their own".

所以这将是简单的删除,因此,我们不应该使用它呢?什么是替代品是什么?

So it will be simply removed so we shouldn't use it at all? What is the replacement for that?

感谢。

推荐答案

基本上,他们去掉标签,因为它们不会增加多少价值,而是导致难闻的设计模式 - 他们太低的水平。它通常最好在你使用任何JavaScript框架发挥,并作出更高层次的标签,让您的目的AJAX调用,而不是一个Grails标签只是为了做一个AJAX调用。

Basically, they're removing the tags because they don't add much value, and instead contribute to bad design patterns - they're too low level. It's usually best to play within whatever Javascript frameworks you're using, and make higher level tags that make the AJAX calls for a purpose, rather than having a Grails tag JUST for making an AJAX call.

<一个href="https://groups.google.com/forum/#!topic/grails-dev-discuss/IXvqDUr6CIE">https://groups.google.com/forum/#!topic/grails-dev-discuss/IXvqDUr6CIE <一href="https://groups.google.com/forum/#!topic/grails-dev-discuss/4yesijtFSB4">https://groups.google.com/forum/#!topic/grails-dev-discuss/4yesijtFSB4

这篇关于remoteLink德precated在Grails的2.4,现在该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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