使用lhgDialog窗口组件,关闭窗口刷新父页面

使用lhgDialog窗口组件javascript

1.引入js    html

<script src="${contextPath}/static/lhgDialog/lhgdialog.min.js"></script>java

2.弹出窗口js代码url

<script type="text/javascript">spa

//预警
           function warnning(id){
              $.dialog({
                  width : 600,
                      height : 400,
                      id :"warnning",
                      content : 'url:' +"${ctx}/hbzxjc/sxHbMonitorWastewater/enterResWarnning?id="+id,  
                      title : "一键预警",
                      cache : false,
                      lock : true,
                      close : function() {
                           alert("关闭了");
                           window.location.reload();   //弹出窗口关闭后,刷新本页面
                   }
                   
               });
          }htm

</script>ip

相关文章
相关标签/搜索