JavaScript/new.target:修订间差异
来自康健生活
| 第204行: | 第204行: | ||
typeof bar; | typeof bar; | ||
bar.constructor; | bar.constructor; | ||
typeof User; | |||
User.constructor; | |||
</syntaxhighlight>|{{consoleout|<pre> | </syntaxhighlight>|{{consoleout|<pre> | ||
"object" | "object" | ||
| 第210行: | 第212行: | ||
console.log(this); | console.log(this); | ||
} | } | ||
"function" | |||
ƒ Function() { [native code] } | |||
</pre>}}}} | </pre>}}}} | ||