function text1(){
        return new Promise((resolve, reject) => {
            setTimeout(function () {
                resolve(console.log('1111111111'));//返回寫函數里面你要執行的內容
            },3000)
        })
    }
    function text2(){
        setTimeout(function () {
                console.log('22222');//返回寫函數里面你要執行的內容
            },1000)
    }
    function timeFN(){
        text1().then(() => {
            text2()
        })
    }
    timeFN() 
        更多參考鏈接:https://blog.csdn.net/weixin_43023873/article/details/91538556
