【发布时间】:2012-08-24 02:44:07
【问题描述】:
我有这样的数组值。我想在 HTML 表格标签中显示这些值
<script type="text/javascript">
var orderArray = [
["1","29-Aug-2012", "Product1", "client1"],
["2","29-Aug-2012", "Product2", "client2"],
["3","29-Aug-2012", "Product3", "client3"],
["4","29-Aug-2012", "Product4", "client4"],
["5","29-Aug-2012", "Product5", "client5"]
];
function display()
{
for(i=0;i<ordertArray.length;i++)
{
//How to display values of array inside the div or table tag ???
}
}
</script>
如何在 div 或 table 标签内显示数组的值 ???
【问题讨论】:
-
您已经有一张桌子还是需要即时创建表格?
-
我想知道值是如何获取的。无论是手动还是即时。
标签: javascript html