📜  React Redux 组件 getById crud 示例 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:59.993000             🧑  作者: Mango

代码示例1
getTutorial(id) {
    TutorialDataService.get(id)
      .then((response) => {
        this.setState({
          currentTutorial: response.data,
        });
        console.log(response.data);
      })
      .catch((e) => {
        console.log(e);
      });
  }