强制刷新页面 Aurora62 2023-05-24 177 阅读1分钟 window.location.reload() // 强制页面刷新 this.forceUpdate() //在react中,state和props数据更新,就会重新render,但是当层级过深时,可能就不会触发渲染,这时候就要用到 this.setState({})