layero和index

Posted lovemis

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了layero和index相关的知识,希望对你有一定的参考价值。

zIndex:layer.zIndex,

success:function(index,layero){

  //layero 为当前层的DOM对象

  var zIndex = layer.index;

  $(layero).css(‘z-index‘,zIndex); //更改显示层级,防止多层弹窗显示层级bug

  layer.close(index); //如果设定了yes回调,需进行手工关闭

}

以上是关于layero和index的主要内容,如果未能解决你的问题,请参考以下文章