微信小程序循环问题,如何循环输出多个view

wx:for是按照数组循环在页面渲染多个view或者block

而当我需要很多个view

比如1000个

难道我要建立1000length的数组?
有没有什么方法能够根据我给的数字进行循环,比如我给了 1000;

就生成1000个view,js实现也可以

在.js里面写个for循环即可。setData到集合。http://blog.csdn.net/qq_31383345

图片说明
图片说明


{{item.title}}

items:[{
  title:'xxx',
  img:'../../images/1.png'
},{
  title:'xxx',
  img:'../../images/2.png'
},
{
  title:'xxxx',
  img:'../../images/3.png'
},
{
  title:'xxx',
  img:'../../images/4.png'
}
]

http://blog.csdn.net/superfang119/article/details/52640919?locationNum=12