this.props.history.push({ pathname: furl, search: 'ssr2' })获取const data = this.props.location.search //地址栏截取 console.log(data) const param = data.split('?')[1] console.log(param)
本文共 280 字,大约阅读时间需要 1 分钟。
this.props.history.push({ pathname: furl, search: 'ssr2' })获取const data = this.props.location.search //地址栏截取 console.log(data) const param = data.split('?')[1] console.log(param)
转载于:https://www.cnblogs.com/whlBooK/p/11202341.html