JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function Create2DArray(rows) {
var a = [];
for (var i=0;i<rows;i++) {
a[i] = [];
}
return a;
}
function test(json) {
var rows = json.feed.entry.length;
var datas = Create2DArray(rows);
for (var i=0 ; i < rows ; i++) {
datas[i][0] = json.feed.entry[i].gsx$a.$t;
datas[i][1] = json.feed.entry[i].gsx$b.$t;
document.write( i + " | 便當: " + datas[i][0] + " | 飲料: " + datas[i][1] + "</br>");
}
}
</script>
<script type='text/javascript' src='https://spreadsheets.google.com/feeds/list/0Ah-SxjmsWaqzdC12UEF1YllWaE9DbWNCN0V1MXZ0SFE/od6/public/values?alt=json-in-script&callback=test'></script>
</head>
<body>
</body>
</html>