function wait(ms) { return new Promise(resolve =>setTimeout(() =>resolve(), ms));};// 调用方法;await wait(5000);