我有下面的json数组
`[{"name":"The Shawshank Redemption","rating":"9.3","year":"1994","stars":["Tim Robbins","Morgan Freeman","Bob Gunton"],},{"name":"The Godfather","rating":"9.2","year":"1972","stars":["Marlon Brando","Al Pacino","James Caan"]}]`
我想在 javascript 数组中转换并打印为 html。然后我会复制数组并保存在 .js 文件中,如下所示。问题是如何从“名称”中删除倒昏迷到名称
var Movies = [ { name: 'The Shawshank Redemption',
rating: '9.3',
year: '1994',
stars:
[ 'Tim Robbins',
'Morgan Freeman',
'Bob Gunton' ]},
{ name: 'The Godfather',
rating: '9.2',
year: '1972',
stars:
[ 'Marlon Brando',
'Al Pacino',
'James Caan' ]}
];