function Person(name, favouriteColour) {
this.Name = name;
this.FavouriteColour = favouriteColour;
}
var group = [];
group.push(new Person("Bob", "Green"));
group.push(new Person("Jane", "Red"));
group.push(new Person("Jack", "Blue"));
我該如何從組中獲取名稱數組?使用JSON從對象數組創建屬性數組
group.??? -> ["Bob", "Jane", "Jack"]
在C#中,同爲:group.ConvertAll<string>(m => m.Name)
你使用jQuery或別的什麼嗎? –