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

run your code forEach undefined error #4

Closed
nickleefly opened this issue Jun 6, 2013 · 4 comments
Closed

run your code forEach undefined error #4

nickleefly opened this issue Jun 6, 2013 · 4 comments

Comments

@nickleefly
Copy link

TypeError: /home/nick/Projects/N-blog/views/index.ejs:9
    7|     日期:<%= post.time.minute %> | 
    8|     标签:
 >> 9|     <% post.tags.forEach(function(tag, index){ %>
    10|       <% if(tag.tag){ %>
    11|         <a class="tag" href="/tags/<%= tag.tag %>"><%= tag.tag %></a>
    12|       <% } %>

Cannot call method 'forEach' of undefined
@nswbmw
Copy link
Owner

nswbmw commented Jun 6, 2013

把出错的代码打包发到 gxqzk@126.com

@nickleefly
Copy link
Author

运行的就是clone你的repo

@nswbmw
Copy link
Owner

nswbmw commented Jun 6, 2013

清空数据库,再运行试试。

@nickleefly
Copy link
Author

works谢谢

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