标签:
matrix[row][col],比如[ [ "Name", "Age" ], [ "Sam", 12 ] ]
function (m) { var s = ‘‘; for (var i in m) { s += ‘<tr>‘; for (var j in m[i]) s += ‘<td>‘ + m[i][j] + ‘</td>‘; s += ‘</tr>‘; } return s; }
[小作品][JS]转换一个矩阵(2维数组)为HTML Table
标签:
原文地址:http://www.cnblogs.com/jt2001/p/151128matrix2table.html