// 延时ms后执行 export function sleep(ms, data) { return new Promise(resolve => setTimeout(() => { resolve(data); }, ms)); }