gpt4 book ai didi

javascript - Javascript有页面转发和页面重定向的区别吗?

转载 作者:行者123 更新时间:2023-11-27 23:44:14 25 4
gpt4 key购买 nike

JSF 确保

<h:commandXxx action="index.xhtml"> 

向前翻页,并且

<h:commandXxx action="index.xhtml?facesredirect=true">

页面重定向。

如何用Javascript执行这两个操作?

最佳答案

没有。

只需向服务器发送请求,服务器即可准确应用所需的行为。

例如

location = "index.xhtml";
location = "pageWhichRedirectsToOtherPageWhichForwardsToThatPage.xhtml";

关于javascript - Javascript有页面转发和页面重定向的区别吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33388705/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com