showRec:function (obj) {
    window.formData = null;
    layer.open({
        type: 2
        ,title: '客户信息'
        ,content: 'customerShow.jsp'
        ,maxmin: true
        ,area: layui.setter.area_percent
        ,offset:'t'
        ,btn: ['关闭']
        ,success:function(layero,index){
            window.formData = obj.data;
        }
    });
},

其中:

window.formData = obj.data; 

在 customerShow.jsp 这样获取:

var formData = window.parent.formData;