一段简答的JavaScript code
<span id="acqrepeater">
qwww,qwwwe,444t,hyr5h5, -----list(q,,)
</span>
<script language=javascript type='text/javascript'>
if (jQuery('#acqrepeater span').size() > 0){
jQuery('#acqrepeater span')[jQuery('#acqrepeater span').size()-1].innerHTML = '' ----remove the last comma
}
</script>