var products = [
{ id: 0, price: 70000, title: "Blossom Dress" },
{ id: 1, price: 50000, title: "Springfield Shirt" },
{ id: 2, price: 60000, title: "Black Monastery" },
];
let title = document.querySelectorAll(".title");
let price = document.querySelectorAll(".price");
for (let n = 0; n < products.length; n++) {
function bind(n) {
for (let i = 0; i <= n; i++) {
$(title[i]).html(products[i].title);
$(price[i]).html(products[i].price);
}
}
bind(n);
}
이런거 잼있는건 초반에만 그런거지? ㅇㅅㅇ
나도 이거할때 드디어 개발시작!! 했는데
ㅇ ㅅ ㅇ 쓰지마 - dc App