var pageCurr; function getCol() { var cols = [ ]; cols.push.apply(cols, detlCols); cols.push({field: 'status', align: 'center',title: '数据状态', templet:function(row){ var html = " ($(window).height()*0.9)) { height = ($(window).height()*0.8); } layer.style(index, { // top: (($(window).height()-height)/3)+"px", height: height+'px' }); } $('body').keydown(function () { if (event.keyCode === 13) { $("#search").click(); } });