邓洁 : 合并模型代码

This commit is contained in:
邓洁
2023-12-07 23:30:51 +08:00
parent b194b07b95
commit 38820566ec
10 changed files with 225 additions and 197 deletions

View File

@@ -0,0 +1,8 @@
export default function (funName, fun) {
//这里给类里面添加函数,方便内部使用操作
if (this[funName]) {
console.error(`已存在${funName}函数`);
return;
}
this[funName] = fun;
}