是否可以在初始化后向对象文字添加新属性。我想做如下的事情:
// Initialize new object literal to hold subset of information about each transaction.
var transactionJson = new {};
transactionJson[transaction.Id] = new {
Status = transactionList.StatusProperty,
Completed = transactionList.Completed,
First = transactionList.First
};