$('#underPrice').click(function(){ // 이름정렬
var 육만원이하 = products.filter(function (a) {
return a.price< 60000
})
$('.row').html('');
내용(육만원이하)
})
여기서 왜 products.filter(function(a) 아래에 a.price 이런식으로 언급해야지만 그 오브젝트안의 값을 정상적으로 가져오는듯하는데
처음에는 procuts.price.filter(function(a) 아래엔 그냥 a 나열이나 a,b 비교를 했는데 그건 전혀 작동하지 않더군요 혹시 설명해주실수 있나요?