https://codingnote.cc/zh-hans/p/718424/
模拟Promise的功能