mirror of
https://gitee.com/layui/layui.git
synced 2025-04-04 23:39:34 +08:00
fix(layer): getFrameIndex 行为与 2.x 保持一致 (#2592)
This commit is contained in:
parent
83ce0d3817
commit
32f298006c
@ -1068,6 +1068,7 @@ layer.getChildFrame = function(selector, index){
|
||||
|
||||
// 得到当前 iframe 层的索引,子 iframe 时使用
|
||||
layer.getFrameIndex = function(name){
|
||||
if(!name) return;
|
||||
return $('#'+ name).parents('.'+doms[4]).attr('times');
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user