Grails的GSP页面中增加无条件跳转的方法。

在网页中增加如下的代码即可实现跳转

<script>
    location.href = "login"
</script>

其实:location.href为命令,引号内指定的就是要跳转的位置。

posted @ 2016-09-08 09:10  Jackey.Zheng  阅读(394)  评论(0)    收藏  举报