Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comment的问题 #3

Closed
lwj0012 opened this issue Jun 5, 2013 · 1 comment
Closed

comment的问题 #3

lwj0012 opened this issue Jun 5, 2013 · 1 comment

Comments

@lwj0012
Copy link

lwj0012 commented Jun 5, 2013

在加入comment之前发表的文章不能回复,且会出现错误
建议在comment.ejs中加入对comments是否存在的判断

@nswbmw
Copy link
Owner

nswbmw commented Jun 6, 2013

没必要加入判断,因为你是按着教程来的,之前发表过文章,所以做到这时会出现错误,清理数据库即可。而在生产环境中,我们直接给出最终代码,这种情况也是不会发生的。

@nswbmw nswbmw closed this as completed Jun 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants