react中实现页面跳转
方式一:history在原窗口跳转this.props.history.push(“你的url后缀路径,不包含域名”)//比如this.props.history.push(“detail/”)(要在主函数中的参数加上props,一定要是主函数)方式二:打开新的跳转窗口let url = document.URL + “/detail/” + projectId;window.open(url) //此处的url是全路径方式三:使用标签,原窗口跳转项目列表方式四:非主函数直接修改pat






