使用layers打开新窗口

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) {
                        
                    }

                });
            }
        });
    }






猜你喜欢

转载自blog.csdn.net/liyongjian12/article/details/70158538