Tourry
Tourry
使用了进 6 个月,时有 bug,但是提供的导入、打印等 api 非常方便。
为什么不更新了?
win10 Chrome100 同样报毒
```javascript Function.prototype.softBind = function (ctx) { ctx ??= globalThis ctx = Object(ctx) const self = this const args = [...arguments].slice(1) function bound() { fn.call(new.target || this !== globalThis ? this...
```javascript Function.prototype.myCall = function (ctx) { ctx ??= globalThis ctx = Object(ctx) const args = [...arguments].slice(1) const key = Symbol('key') ctx[key] = this const res = ctx[key](...args) delete ctx[key] return...
```javascript Function.prototype.myBind = function (ctx) { ctx ??= globalThis ctx = Object(ctx) const self = this const args = [...arguments].slice(1) function bound() { self.call(new.target ? this : ctx, ...args) }...