33-页面中的锚点定位
老读者注意:上一章消息通知有个bug,即发给管理员的notify必须移动到new_comment.save()的后面,否则会导致action_object存储为NULL,并且导致本章的html拼接锚点失效。原文已更正,为博主的疏忽表示歉意。上一章已经实现了消息通知功能,可以很人性化的把用户引导到被他人回复的页面中去。但是仔细想想,似乎还有不方便的地方:如果页面中评论较多,想找到感兴趣的那一条...
2024-07-25