该问题已被锁定!
3
关注
2380
浏览

文章回复点赞后不能及时更新赞数,需要手动刷新页面才可以

AI智能回复搜索中,请稍后...

为什么被折叠? 0 个回复被折叠
final 高级会员 用户来自于: 安徽省合肥市
2016-06-12 16:10
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');                                      }

关于作者

问题动态

发布时间
2016-06-12 15:48
更新时间
2016-06-12 16:10
关注人数
3 人关注

推荐内容

多图文展示
文章上一篇下一篇如何实现呢
3.0beta3文章或回答里面,如果有加粗的字,空行就无效,有修复方案吗?
希望【账号绑定】功能,可以【增加】 【百度】接口
头像旁边的“发起”按钮如何修改成像官网那样的?
文章,会加上 浏览次数 吗?现在似乎没有哦
发布过的文章有图片附件,二次编辑的时候提醒,【只允许插入当前页面上传的附件】,怎么解决
WeCenter 2.5 如何调用文章标题列表?
有关文章下面的评论
其实对于WC这个平台 我比较关注的是“文章”而不是“问答”