From 26df2dc43b7fb8578f51d8cc99f181e3f5daaae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Tue, 21 Jun 2022 00:25:07 +0800 Subject: [PATCH] update --- src/layui.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/layui.js b/src/layui.js index 23e64bc8..2bd6664f 100644 --- a/src/layui.js +++ b/src/layui.js @@ -232,7 +232,8 @@ return that; }; - Layui.prototype.unuse = function (apps) { + // 弃用原有的指定模块,以便重新扩展新的同名模块 + Layui.prototype.disuse = function(apps){ var that = this; apps = that.isArray(apps) ? apps : [apps]; that.each(apps, function (index, item) { @@ -244,8 +245,8 @@ delete that.modules[item]; delete config.status[item]; delete config.modules[item]; - }) - } + }); + }; //获取节点的 style 属性值 Layui.prototype.getStyle = function(node, name){