We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在模板里面写入
The text was updated successfully, but these errors were encountered:
render时没有传入 user 所以才会报user is not defined
Sorry, something went wrong.
在哪里处理呢
No branches or pull requests
在模板里面写入
home <% if(user){ %> post logout <% } else { %> login register <% } %> 如果判断中的user不存在,会在页面报错,user is not defined。 怎么解决这类问题呢,改怎么写呢The text was updated successfully, but these errors were encountered: