微信小程序 同步异步回调问题

我想在回调完成输出以下数据,但事实上它输出时候是在回调前,如何调整这个部分?

onload(e)
{
    this.getA(); //这里面包含后台取数(异步回调)
    this.getB();

//我想在回调完成输出以下数据,但事实上它输出时候是在回调前
    console.log(this.data.A)
}

async onLoad() {
    const res = await this.getA();
    this.data.A = res;
    this.getB();
},
getA() {
    return new Promise((resolve,reject) => {
        $.ajax({
            methods: '',
            url: '',
            success: res => {
                resolve(res)
            },
            error: err => {
                reject(err)
            }
        })
    })
},

借助promise和async