From 29bdea64c3a0270a55f735f6f230f1ad8fc5d167 Mon Sep 17 00:00:00 2001 From: nonameShijian <2954700422@qq.com> Date: Mon, 29 Jan 2024 14:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=97=B6=E7=89=B9=E6=80=A7=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E7=94=A8trace=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/init/polyfill.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/noname/init/polyfill.js b/noname/init/polyfill.js index 1c6c1f9c7..38cd2f8a7 100644 --- a/noname/init/polyfill.js +++ b/noname/init/polyfill.js @@ -9,7 +9,7 @@ import { UI as ui } from '../ui/index.js'; // 改为HTMLDivElement.prototype.addTempClass HTMLDivElement.prototype.animate = function (keyframes, options) { if (typeof keyframes == 'string') { - console.warn(this, '无名杀开发者修改的animate方法已废弃,请改为使用addTempClass方法'); + console.trace(this, '无名杀开发者修改的animate方法已废弃,请改为使用addTempClass方法'); return HTMLDivElement.prototype.addTempClass.call(this, keyframes, options); } else return HTMLElement.prototype.animate.call(this, keyframes, options); @@ -255,7 +255,7 @@ HTMLTableElement.prototype.get = function (row, col) { }; /*处理lib.nature等从array改为map的兼容性问题*/ const mapHasFunc = function (item) { - console.warn(this, '已经从array改为map,请改为使用has方法'); + console.trace(this, '已经从array改为map,请改为使用has方法'); return this.has(item); } Object.defineProperty(Map.prototype, "contains", { @@ -271,7 +271,7 @@ Object.defineProperty(Map.prototype, "includes", { value: mapHasFunc }); const mapAddFunc = function (item) { - console.warn(this, '已经从array改为map,请改为使用set方法'); + console.trace(this, '已经从array改为map,请改为使用set方法'); this.set(item, 0); return this; } @@ -303,7 +303,7 @@ Object.defineProperty(Map.prototype, "remove", { enumerable: false, writable: true, value: function (item) { - console.warn(this, '已经从array改为map,请改为使用delete方法'); + console.trace(this, '已经从array改为map,请改为使用delete方法'); this.delete(item); return this; }