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

如何循环输出一段html,如下的方式 #18

Closed
sherry1115 opened this issue Oct 22, 2012 · 4 comments
Closed

如何循环输出一段html,如下的方式 #18

sherry1115 opened this issue Oct 22, 2012 · 4 comments

Comments

@sherry1115
Copy link

{@each i in range(0, ${deep})}{@/each}

@PaulGuo
Copy link
Owner

PaulGuo commented Oct 22, 2012

deep 是变量?

{@each i in range(0, deep)...{@/each}}

@PaulGuo PaulGuo closed this as completed Oct 22, 2012
@sherry1115
Copy link
Author

{@each i in range(0, deep)}...{@/each} 是这样的吧,非常感谢~

@pulo
Copy link

pulo commented Nov 9, 2012

其实我一直没搞懂 什么情况下需要用到each~~

@PaulGuo
Copy link
Owner

PaulGuo commented Nov 10, 2012

@ZhuMinqi Object/Array 循环输出,比如一个列表,一个表格等,实际需求中应该很常用到的。

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

3 participants