我在玩一个简单的应用程序,但是当我按下按钮时遇到了问题。它没有响应,我该怎么办?
这是scala文件,我希望按钮采用3个值并以新形式返回新值
@(solutionForm: Form[Socrates])
@import helper._
@main(title = "form 1") {
@form(action = routes.Application.solve, args = 'id -> "solutionform") {
@inputText(field = solutionForm("a"),args = '_label -> " a ="
)@inputText(field = solutionForm("b"),args = '_label -> "b ="
)@inputText(field = solutionForm("c"),args = '_label -> "c ="
) }
<input type="submit" >
}
新形式为:
@(man : String )
@main("solution") {
<h3>the solution for the previous equation is @man </h3>
}
该按钮应该在form标记内才能起作用。
@form() {
<input type="submit">
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句