1、使用spring mvc 或者jfinal中,使用layers打开页面层
function openchartLayer(url, title, para, area, reloadPage) { $.get(url, para, function (data) { if (data.toString().indexOf('rememberMe') > -1) { window.location.reload(); } else { layer.open({ type: 1, area: area + 'px', title: title, content: data, btn: ["查询", "取消"], yes: function (indx, layero) { }, success: function (layero, indx) { } }); } }); }