我有这个数组电视,当我用循环读取这个数组时,它只给我最后一项,在这种情况下是东芝,我该怎么做才能向我展示电视品牌?
for (var i=0;i<tv.length;i++){
$('#item').html(tv[i].Brand)}
<div id='item'></div>
阵列电视:
var tv = [{"Name":"TV","Brand":"Samsung"},
{"Name":"TV","Brand":"Toshiba"},
{"Name":"TV","Brand":"LG"}]