官方资料:http://www.layui.com/doc/modules/layer.html

在一个弹出框中新增个按钮,点击按钮后执行自己的语句(返回上一页并刷新)。

layer.open({title: '提示',offset: '100px',skin: 'layui-layer-lan',content:'确定',btn: ['确定'],
                yes: function(index, layero){
                    window.location.href = document.referrer;
                }
            });

 

相关文章:

  • 2021-07-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案