.then 打印不出东西来,不知道什么原因?
//封装promise的一个方法
inspectionOrderList() {
var that = this
var p = new Promise(function (resolve, reject) {
http.inspectionOrderList({ //接口
.....
})
})
return p;
},
//在onload里面的调用
this.inspectionOrderList().then(res => {
console.log("----onload",res)
})
