react中异步的使用

let  promise;

promise =  this.props.corporationService.preSearchPage(params);

                promise.then((data) => {

                }).catch(errors => {
                    Modal.success({
                        title: '提示消息',
                        content: errors.errMsg,
                    })
                });
原文地址:https://www.cnblogs.com/zxyun/p/8047386.html