|
本帖最后由 zhgc 于 2023-4-30 21:15 编辑
layui.js的checkStatus分析
- d.checkStatus=function(e){
- var t=0,i=0,a=[],l=d.cache[e]||[];
- console.log(l);
- console.log(d.config.checkName);
- return layui.each(l,
- function(e,l){
- console.log(l);
- return l.constructor===Array?void i++:void(l[d.config.checkName]&&(t++,a.push(d.clearCacheKey(l))))
- }
- ),
- {data:a,isAll:!!l.length&&t===l.length-i}
- },
复制代码
|
|