javascipt : filter 過濾
var List = sizes.filter(function (size) { return size.id == 12; });
sizes = [ {id : 10,,stock:130},{id : 11,stock:120},{id : 12,stock:100} ]
filter是new一個新的array,然後給他過濾後的對象,最後var list 起來