使用promise实现的nextTick
nextTick().then(() => { // do something});// orawait nextTick();// do something 复制
nextTick().then(() => { // do something});// orawait nextTick();// do something
const abort = nextTick(() => { // do something});abort(); // abort 复制
const abort = nextTick(() => { // do something});abort(); // abort
使用promise实现的nextTick
返回Promise