一段简答的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>

posted @ 2017-06-08 21:47  yuerspring  阅读(125)  评论(0编辑  收藏  举报