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.
当发生一些内部错误时,我想将用户重定向到登录页面。Javascript 函数得到了内部错误的响应,所以我想通过这个 javascript 函数将用户重定向到 Liferay 登录页面。我应该调用什么函数来实现这一点?
当您需要将浏览器重定向到新页面时更改对象href的属性:location
href
location
location.href = '/login/page';