Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从项目统计字段的 numberOfComments 中获取评论数值,但它返回评论总数。
任何人都可以帮助我,我如何才能在 UGC 中找到只有适度数量的评论?
AFAIK 目前无法直接找到它,但您可能只允许审核评论,然后将它们视为
<ugc:ForEachComment runat="server"> <% HttpContext.Current.Items["Count"] = Convert.ToInt32(HttpContext.Current.Items["Count"]) + 1; %> </ugc:ForEachComment>
希望它会帮助你。