var mySplitResult = xvotesString[htmlid].split('~');
$('#xvote-' + htmlid).css('width', mySplitResult[0] + 'px');
if ($('#mnma-' + htmlid).length > 0);
$('#mnma-' + htmlid).html(mySplitResult[1]);
if ($('#mnmb-' + htmlid).length > 0);
$('#mnmb-' + htmlid).html(mySplitResult[2]);
if ($('#mnmc-' + htmlid).length > 0);
$('#mnmc-' + htmlid).css('display', 'none');
if ($('#mnmd-' + htmlid).length > 0);
$('#mnmd-' + htmlid).css('display', 'block');
$('#xvotes-' + htmlid).addClass('star-rating-noh');
或
var mySplitResult = xvotesString[htmlid].split('~'),
target3 = $('#xvote-' + htmlid),
target4 = $('#mnma-' + htmlid),
target5 = $('#mnmb-' + htmlid),
target6 = $('#mnmc-' + htmlid),
target0 = $('#mnmd-' + htmlid), //replace target6
target7 = $('#xvotes-' + htmlid);
$(target3).css('width', mySplitResult[0] + 'px');
if ($(target4).length > 0);
$(target4).html(mySplitResult[1]);
if ($(target5).length > 0);
$(target5).html(mySplitResult[2]);
if ($(target6).length > 0);
$(target6).css('display', 'none');
if ($(target0).length > 0);
$(target0).css('display', 'block');
$(target7).addClass('star-rating-noh');