1. 简单方法实现loading
import React from 'react'
export default class Loading extends React.Component {
constructor(props){
super(props);
this.state = {
loading:true
}
}
componentDidMount(){
/*********主要代码 */
const ID = this.props.id;
const path = this.props.path;
this.props.getInformation(ID,path).then((response)