我的视图中有一个变量"x".我需要显示一些代码"x"次.
我基本上想要设置一个这样的循环:
for i = 1 to x do something on (i) end
有没有办法做到这一点?
ruby for-loop
for-loop ×1
ruby ×1