如何在 liquid shopify 中打印图案
How to print pattern in liquid shopify
我正在尝试创建这样的模式 https://prnt.sc/1skp2s0
我正在尝试使用 liquid code
{% for i in (1..10) %}
{% for j in (1..10) %}
{{i}}
{% endfor %}
{% assign i=i | plus : '1' %}
<br>
{% endfor %}
像这样使用变量和
标签,它会帮助你像这样打印结果
{% assign j = 1 %}
{% for i in (1..10) %}
{% for j in (1..j) %}
{{j}}
{% endfor %}
{% assign j = j | plus: 1 %}
<br/>
{% endfor %}
我正在尝试创建这样的模式 https://prnt.sc/1skp2s0 我正在尝试使用 liquid code
{% for i in (1..10) %}
{% for j in (1..10) %}
{{i}}
{% endfor %}
{% assign i=i | plus : '1' %}
<br>
{% endfor %}
像这样使用变量和
标签,它会帮助你像这样打印结果
{% assign j = 1 %}
{% for i in (1..10) %}
{% for j in (1..j) %}
{{j}}
{% endfor %}
{% assign j = j | plus: 1 %}
<br/>
{% endfor %}