js当此方法执行完之后再执行下一个方法

getGoodsList() {
        this.loading2 = true;
        this.theckedArrData = [];
        listGoods(this.queryParams3).then(response => {
          this.goodsList = response.rows;
          this.total2 = response.total;
          this.loading2 = false;
        }).then(res=>{
          this.getselectGoodsList();
        });
      },

你可能感兴趣的:(javascript,开发语言,ecmascript)