1. async function go(){
    2. return 10;
    3. }
    4. //得到promise执行结果
    5. // 1.then
    6. //2.await 但是只能在async函数中使用,后面只能是promise
    7. async function getResult(){
    8. var res =await go();
    9. console.log(res)
    10. }
    11. getResult()