? var a = [??????????? { "name": "測試1", "cnt": "測試" },??????????? { "name": "測試2", "cnt": "測試" },??????????? { "name": "測試3", "cnt": "測試" },??????????? { "name": "測試4", "cnt": "測試" },??????????? { "name": "測試5", "cnt": "測試" }??????????????? ]??????????????? if (a) {??????????????????? _html = "";??????????????????? for()??????????????????????? _html += '<tr>';??????????????????????? _html += '<td><span>箱內溫度:冷藏:0~10℃/冷凍:0~-15℃</span></td>';??????????????????????? _html += '<td><span>重量:60(KG)</span></td>';??????????????????????? _html += '</tr>';??????????????? }就是用js遍歷json有沒有每次取兩條數據這樣遍歷而不是一條
關于遍歷的問題 有沒有大??梢越鉀Q
歐羅巴皇
2016-11-07 16:00:12