var myArray = [
{"Emiten_ID":'SMBR',"Lot":500,"Price":2500},
{"Emiten_ID":'SMBR',"Lot":300,"Price":2200},
{"Emiten_ID":'ELSA',"Lot":500,"Price":1000},
{"Emiten_ID":'SMBR',"Lot":100,"Price":3000},
{"Emiten_ID":'BI',"Lot":300,"Price":500},
{"Emiten_ID":'AAI',"Lot":200,"Price":1300},
{"Emiten_ID":'BTB',"Lot":700,"Price":2900},
{"Emiten_ID":'BI',"Lot":150,"Price":200},
{"Emiten_ID":'AAI',"Lot":200,"Price":600},
];
我想造成這樣的,我在那裏得到的價格如何總結和ID的JavaScript
var Result= [
{"Emiten_ID":'ELSA',"Lot":500,"Price":1000},
{"Emiten_ID":'SMBR',"Lot":900,"Price":3000},
{"Emiten_ID":'BI',"Lot":450,"Price":500},
{"Emiten_ID":'BTB',"Lot":700,"Price":2900},
{"Emiten_ID":'AAI',"Lot":400,"Price":1300},
];
我沒有看到任何JavaScript(除了問題和期望的結果之外),你用JavaScript試過了什麼?請提供[mcve]。 – zer00ne