javascript - How can await be executed repeatedly when compiled with es6 babel?
ringa_lee
ringa_lee 2017-06-12 09:31:00
0
2
838

For example:

(async () => {
    const a = await promise();
    console.log(a);
})()

The promise function can be resolved multiple times. How can the function after await be executed repeatedly?

ringa_lee
ringa_lee

ringa_lee

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!