路由形式如下赏酥,id為參數(shù): xxx/xxx/:id 在該頁面中獲取id: const id = this.props.match.prarms.id 跳轉(zhuǎn)至該路由: this.props.history.push(`/xxx/xxx/${id}`)