This website works better with JavaScript.
欢迎来到马士兵代码仓库
Sign In
msb-public
/
svelte
mirror of
https://github.com/sveltejs/svelte
Watch
1
Star
0
Code
Issues
Projects
Releases
Wiki
Activity
d29de3c817
svelte
/
test
/
runtime
/
samples
/
if-block-else-in-each
/
main.html
8 lines
101 B
Raw
Blame
History
{{#each array as item}}
{{#if item}}
<
div
>
foo
<
/
div
>
{{else}}
<
div
>
bar
<
/
div
>
{{/if}}
{{/each}}
Reference in new issue
View Git Blame
Copy Permalink