<
从版本< 3.1 >
Qiongpan Ke编辑
在2024-04-10上
到版本
Qiongpan Ke编辑
在2024-07-03上
修改评论: 该版本没有评论

摘要

细节

Icon 页面属性
内容
... ... @@ -15,7 +15,7 @@
15 15   const setupFn = function(obj) { window[funName] = obj; return 'window.' + funName; }
16 16   const clearFn = function() { delete window[funName]; };
17 17   const timerId = setTimeout(function() { clearFn(); attribs.timeoutCallback && attribs.timeoutCallback(); }, attribs.timeoutInterval || 5 * 60 * 1000);
18 - const funBody = function() { callback.apply(this, arguments); clearTimeout(timerId); clearFn(); };
18 + const funBody = function() { clearTimeout(timerId); clearFn(); delete attribs.timeoutCallback; callback.apply(this, arguments); };
19 19   const tempObj = { name: funName, callback: funBody };
20 20   Object.assign(funBody, callback);
21 21   Object.assign(tempObj, attribs);

同级页面

版权所有,如发现盗用模仿必追诉法律责任!
CopyRight © 2020-2023 keqiongpan.cn. All Right Reserved.