繁体   English   中英

我如何才能将按钮重定向到正在播放的其他页面

[英]how could I make a button redirect to another page in play

我在玩一个简单的应用程序,但是当我按下按钮时遇到了问题。它没有响应,我该怎么办?

这是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() {
  <input type="submit">
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM