static/js/aws.js 1918行
var agree_num = parseInt(selector.html().replace(/[^0-9]/ig,""));
if (rating == 0)
{
var selectorhtml = selector.html().replace(_t('我已赞'), _t('赞'));
selector.html(selectorhtml.replace(agree_num, (agree_num-1))).removeClass('active');
}
else
{
var selectorhtml = selector.html().replace(_t('赞'), _t('我已赞'));
selector.html(selectorhtml.replace(agree_num, (agree_num+1))).addClass('active');
}
阅读全文
收起全文