mirror of https://github.com/layui/layui
优化 `lay.getStyleRules()` 方法的回调传参
parent
ada3ad2c1e
commit
b391ade958
|
@ -135,7 +135,7 @@
|
|||
|
||||
if (typeof callback === 'function') {
|
||||
layui.each(rules, function(i, item){
|
||||
if (callback(item)) return true;
|
||||
if (callback(item, i)) return true;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue