使用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