0
只是想知道是否有更好更簡單的方法將對象轉換爲使用underscoreJS對象數組。以下是我所嘗試過的。使用自定義鍵將對象轉換爲對象數組
http://jsfiddle.net/tomalex0/VGc9E/
```
var newArr = []
_.each(toBeUpdated, function(value, key) {
var newObj = {};
newObj.field = key;
newObj.fieldstatus = value;
newArr.push(newObj);
});
console.log(newArr);
```