new Promise(test)此句运行时,Promise会去call test方法,并给它传递Promise内部的resolve,reject两个方法!所以你的function test(resolve) 中的resolve是接收的Promise中的resolve方法,而非你自己定