var this.musicList = [ { id: '2013-2014', term: '1' },
{ id: '2013-2014', term: '1' },
{ id: '2013-2014', term: '2' }]
方法
var unique = {};
this.musicList.forEach(function (gpa) {
unique[JSON.stringify(gpa)] = gpa
});
this.musicList = Object.keys(unique).map(function (u) {
return JSON.parse(u)
});