我现在正在使用Rails应用程序将页面重定向到主页 redirect_to root_path 我希望在jQuery中实现相同的功能。 例如:window.location.replace("???"); 如何实现?