标签:sed blank created .com opera before bsp return ges
【Promise()】
The constructor is primarily used to wrap functions that do not already support promises.
executor
A function that is passed with the arguments resolve
and reject
. The executor
function is executed immediately by the Promise implementation, passing resolve
and reject
functions (the executor is called before the Promise
constructor even returns the created object).
红字部分:executor在new Promise()返回前就被执行。
A Promise
is in one of these states:
参考:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
标签:sed blank created .com opera before bsp return ges
原文地址:http://www.cnblogs.com/tekkaman/p/7496938.html