#mtddc // $('.year').replaceWith(function() { var year = $(this).text(); $(this).replaceWith('' + year + '') }); // $('img').removeAttr('style class'); $('.img-block__img').replaceWith(function() { var img = $(this).html(); $(this).replaceWith('< fi gure class="img-block__img">' + img + ' fi gure>') }); ࠓճॻ͍͍ͯΔ༰ʢൈਮʣ QλάΛEJW fi HVSFʹஔ͖͑ TUZMFଐੑDMBTTଐੑΛআ
#mtddc // $('.img-block').each(function(){ var position = $(this). fi nd('.position').text(); $(this).addClass(position);}); $('.position').remove(); // $('.block').wrapInner(''); $('.detail').wrapInner(''); // $('.block').each(function(){ $(this). fi nd('.year').insertBefore($(this). fi nd(".detail")); }); $('.block').each(function(){ $(this). fi nd('.comment').insertAfter($(this). fi nd(".group")); }); ࠓճॻ͍͍ͯΔ༰ʢൈਮʣ ը૾ஔ༻ͷDMBTTΛϒϩοΫʹ͚ͭΔ ϒϩοΫͰғͬͨΓɺॱংΛೖΕସ͑ͨΓ