JavaScript/Promise:修订间差异
来自康健生活
无编辑摘要 |
|||
| 第10行: | 第10行: | ||
[[文件:Promise 1 2.png|400px|none|无|Promise 1 2]] | [[文件:Promise 1 2.png|400px|none|无|Promise 1 2]] | ||
== object promise == | == object promise == | ||
{{ | {{Double-columns|<syntaxhighlight lang="javascript"> | ||
Object.prototype.toString.call(Promise.resolve())</syntaxhighlight>|{{consoleout|<pre>"[object Promise]" | Object.prototype.toString.call(Promise.resolve())</syntaxhighlight>|{{consoleout|<pre>"[object Promise]" | ||
</pre>}}}} | </pre>}}}} | ||