我正在处理一个使用 $_POST
和 $_GET
的示例 PHP 脚本。你能告诉我,grail 相当于 php 的 $_POST
和 $_GET
吗?
最佳答案
Grails 将请求中发送的信息存储在名为 params
的 Map
中。
http://grails.org/doc/latest/ref/Controllers/params.html
这个map的类型是GrailsParameterMap,可以查看 here可用的方法。
关于grails:相当于 php 的 $_POST 和 $_GET 的是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18157220/