뭔가 이런 각각의 언어에 대한 번역 할 필요가 매달 테이블이 원래 사이의 매핑을 유지할 수
$('.lang-en #monthly th').each(function() {
var text = $(this).text();
$(this).text(text.replace('Tam', 'Jan'));
$(this).text(text.replace('Hel', 'Feb'));
$(this).text(text.replace('Maa', 'Mar'));
$(this).text(text.replace('Huh', 'Apr'));
$(this).text(text.replace('Tou', 'May'));
$(this).text(text.replace('Kes', 'Jun'));
$(this).text(text.replace('Hei', 'Jul'));
$(this).text(text.replace('Elo', 'Aug'));
$(this).text(text.replace('Syy', 'Sep'));
$(this).text(text.replace('Lok', 'Oct'));
$(this).text(text.replace('Mar', 'Nov'));
$(this).text(text.replace('Jou', 'Dec'));
$(this).text(text.replace('Yht', 'Total'));
});
잘 보이는, 정확히'나던 작업 obviously'에 의해 무엇을 의미합니까? – Sarfraz
"네가 분명히 일하지 않는다"고 하던데, 어떻게 그렇게? 왜이게 효과가 없습니까? 이 코드 스 니펫의 핵심은 무엇입니까? –
사이드 노트 @client로'$ (this)'캐싱을 고려하십시오. 그렇게하는 것이 가장 좋습니다. –