kennyliu

API地址:http://layer.layui.com/api.html#end

调用END回调方法:

end - 层销毁后触发的回调

类型:Function,默认:null

无论是确认还是取消,只要层被销毁了,end都会执行,不携带任何参数。

   function updateStock(id) {
        //iframe层
        parent.layer.open({
            type: 2,
            title: \'修改\',
            shadeClose: false, //点击遮罩关闭
            shade: 0.8,
            area: [\'30%\', \'45%\'],
            maxmin: true,
            closeBtn: 1,
            content: [\'/BusinessActivity/CheckStock/LayerUpdateStock?id=\' + id, \'yes\'], //iframe的url,yes是否有滚动条
            //yes: function (index, layero) {
            //    alert(index);
            //    alert(layero);
            //},
            end: function () {
                location.reload();
            }

        });

 

分类:

技术点:

相关文章:

  • 2019-01-04
  • 2021-08-06
  • 2021-12-23
  • 2021-08-06
  • 2021-08-06
  • 2021-08-06
猜你喜欢
  • 2021-11-07
  • 2021-12-21
  • 2021-11-07
  • 2021-08-24
  • 2021-04-13
  • 2021-11-07
相关资源
相似解决方案