JavaScript/new.target:修订间差异
来自康健生活
| 第87行: | 第87行: | ||
</pre>}}}} | </pre>}}}} | ||
== bind == | == bind == | ||
普通函数 bind 操作,可以返回一个绑定的固定 this 的新函数。 | 普通函数 [https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Function/bind bind] 操作,可以返回一个绑定的固定 this 的新函数。 | ||
{{leftrightflex|<syntaxhighlight lang="javascript"> | {{leftrightflex|<syntaxhighlight lang="javascript"> | ||