Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在该表单之外使用提交按钮 () 提交 grails 表单 ()。我知道我们可以在 javascript 中为简单的 HTML 页面做同样的事情。我对 grails(gsp 页面)比较陌生,很难知道新标签。
提前致谢。
问候, 阿米特
您可以使用 jquery 在表单标签之外提交表单:
<button class="some-class" onclick="jQuery('#formId').submit()">Submit</button>
享受编程..
我知道这可能是一个菜鸟问题,但我真的无法弄清楚。
我被要求修改现有的 php 代码,所以我下载了代码并尝试在我的机器上运行,但我无法让它工作。
据我了解,我们编写 php 代码
<?php //some code ?>
但是我下载的这段代码使用了这样的php代码