第一种方法 window.location.href = "./managerMain/managerMain.html" 如果想跳转到根路径:http://localhost:3000/ 可以这样写-> window.location.href = "/"