diff --git a/src/modules/table.js b/src/modules/table.js index 25cd0f60..c25fd4bb 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -1013,9 +1013,9 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){ //遍历表头 that.eachCols(function(i3, item3){ - var field = item3.field || i3 - ,key = options.index + '-' + item3.key - ,content = item1[field]; + var field = item3.field || i3; + var key = options.index + '-' + item3.key; + var content = item1[field]; if(content === undefined || content === null) content = ''; if(item3.colGroup) return; @@ -1023,6 +1023,7 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){ // td 内容 var td = ['