摘要:
As we know we can read property value from an object as so: const obj = {} obj.xxxx; obj[xxxx]; So what's the difference between those two? obj.x ECMA 阅读全文
posted @ 2024-10-08 15:09
Zhentiw
阅读(9)
评论(0)
推荐(0)
摘要:
Function.prototype.myBind = function (ctx, ...args) { const fn = this; return function (...subArgs) { console.log(new.target); const allArgs = [...arg 阅读全文
posted @ 2024-10-08 14:52
Zhentiw
阅读(14)
评论(0)
推荐(0)
摘要:
The new.target meta-property lets you detect whether a function or constructor was called using the new operator. In constructors and functions invoke 阅读全文
posted @ 2024-10-08 14:50
Zhentiw
阅读(11)
评论(0)
推荐(0)

浙公网安备 33010602011771号