js中给picList赋值
varpicList=[{width:150,height:207,content:"images/1.jpg",},{width:150,height:207,cont...
var picList = [
{
width: 150,
height: 207,
content: "images/1.jpg",
},
{
width: 150,
height: 207,
content: "images/2.jpg",
},
{
width: 150,
height: 207,
content: "images/3.jpg",
},
{
width: 150,
height: 207,
content:"images/5.jpg"
},
{
width: 150,
height: 207,
content:"images/6.jpg"
},
{
width: 300,
height: 414,
content:"images/7.jpg"
},
{
width: 150,
height: 207,
content:"images/8.jpg"
},
{
width: 150,
height: 207,
content:"images/9.jpg"
}
];
var picList;
{foreach name=goods_list from=$search_list item=goods}
中间这部分应该怎么写,赋值格式参照上面。
{/foreach} 展开
{
width: 150,
height: 207,
content: "images/1.jpg",
},
{
width: 150,
height: 207,
content: "images/2.jpg",
},
{
width: 150,
height: 207,
content: "images/3.jpg",
},
{
width: 150,
height: 207,
content:"images/5.jpg"
},
{
width: 150,
height: 207,
content:"images/6.jpg"
},
{
width: 300,
height: 414,
content:"images/7.jpg"
},
{
width: 150,
height: 207,
content:"images/8.jpg"
},
{
width: 150,
height: 207,
content:"images/9.jpg"
}
];
var picList;
{foreach name=goods_list from=$search_list item=goods}
中间这部分应该怎么写,赋值格式参照上面。
{/foreach} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询