摘要: 1.安装模块 npm install axios --save / npm install fetch-jsonp --save 2.在使用的页面引入 fetch-jsonp 阅读全文
posted @ 2019-07-04 21:48 陈小作 阅读(765) 评论(0) 推荐(0)
摘要: https://reacttraining.com/react-router/web/example/basic // git 实例地址 1.安装 npm install react-router-dom --save 2.引入 import { BrowserRouter as Router, R 阅读全文
posted @ 2019-07-04 15:11 陈小作 阅读(8047) 评论(0) 推荐(0)
摘要: import React from 'react' class LifeCycle extends React.Component{ constructor(props) { console.log('我是constructor') super(props) this.state = { value: '生命周期组件... 阅读全文
posted @ 2019-07-04 12:56 陈小作 阅读(450) 评论(0) 推荐(0)