const liEl = document.querySelectorAll('#bo_cate_ul li a');
liEl.forEach( (ele, i) => {
let j = i + 1
let text = document.querySelector('#bo_cate_ul li:nth-child(' + j + ') a');
if(text.textContent === '전체'){
text.textContent = 'All'
} else if(text.textContent === '스트랜드 잭'){
text.textContent = 'Strand Jack'
}
})
728x90