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
如果模板里用到了一个未传入的变量,如 <%= username || 'visitor' %> ,会报 ReferenceError: username is not defined 的错误,望修复,谢谢!
<%= username || 'visitor' %>
The text was updated successfully, but these errors were encountered:
可以暂时使用 arguments[0].username 的方式,之前调研过,更换成其他模板引擎的成本较高,会有无法兼容的情况,后续可以换成自研的模板引擎。
arguments[0].username
Sorry, something went wrong.
No branches or pull requests
如果模板里用到了一个未传入的变量,如
<%= username || 'visitor' %>
,会报 ReferenceError: username is not defined 的错误,望修复,谢谢!The text was updated successfully, but these errors were encountered: