From 0a1461359930d324c50522f4a16b0faa77b30076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B6=E4=B8=8B6=E5=BA=A6?= <592926483@qq.com> Date: Tue, 5 Sep 2023 18:14:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86this=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index e86fabb..fabb34d 100644 --- a/src/index.js +++ b/src/index.js @@ -98,7 +98,8 @@ _proto.init = function () { _this.rendCanvas() } }, - _this.error + // hongnny 处理this丢失 + _this.error.bind(this) ) }