我尝试并找到了解决方案,因为在我按入后,att和值将成为对象
var temp = new Object(); temp["id"] = "po-0167"; temp["date"] = new Date(1980, 2, 24); temp["quantity"] = 1; temp["amount"] = 4; temp["title"] = "A Book about Nothing";bookorders.push(temp);
这将使其显示在数据表中,而通用部分将通过使用temp [att] = attribute [att]进行迭代;



