react页面传参跳转Link&hashHistory

第一种方式使用link:

this.handleRecord()}>拼团记录

获取传过来的值:this.props.location.type/id

第二种使用hashHistory:

hashHistory.push({

pathname: 'activity/purchaseRecord',

query: {

id: '1',

}

});

获取传过来的值:this.props.location.query.id

 

你可能感兴趣的:(前端积累)