-1
我使用的版本如何使用this.transitionTo('template',{id:10})接收參數;在react.js?
"react": "^0.13.3",
"react-router": "^0.13.3"
我希望收到其所導航PARAMS
1)導航得當
2)什麼時,我嘗試使用this.props.query.id
接收參數IT展undefined
。
我使用的版本如何使用this.transitionTo('template',{id:10})接收參數;在react.js?
"react": "^0.13.3",
"react-router": "^0.13.3"
我希望收到其所導航PARAMS
1)導航得當
2)什麼時,我嘗試使用this.props.query.id
接收參數IT展undefined
。
使用此:
this.props.location.query.id
無法讀取的不確定讓這個 – IshanGarg
使用'的console.log財產 '查詢'( '身份證',this.props.location.query.id)'內部渲染方法,和檢查結果 –
done 1)this.transitionTo('template',null,{id:10}); – IshanGarg