重庆小潘seo博客

当前位置:首页 > 重庆网络营销 > 小潘杂谈 >

小潘杂谈

微信小程序中如何在wx:for里判断具体哪一个页面跳转

时间:2020-09-13 19:30:06 作者:重庆seo小潘 来源:
//wx:for循环选项 view>view>image>view data-id={{function.id}}>/view /view //js page({ data:{ functions: [ { name: 库存, pic_url: ../image/half-star.png, }, { name: 报表, pic_url: ../image/half-star.png }, { name: 商品管理, pic_url: ../ima

//wx:for循环选项

<view><view><image><view data-id="{{function.id}}"></view>

</view>

//js

page({

data:{

functions: [

{

"name": "库存",

"pic_url": '../image/half-star.png',

},

{

"name": "报表",

"pic_url": '../image/half-star.png'

},

{

"name": "商品管理",

"pic_url": '../image/half-star.png'

},

{

"name": "订货",

"pic_url": '../image/half-star.png'

},

{

"name": "飞机票",

"pic_url": '../image/half-star.png'

},

{

"name": "火车票",

"pic_url": '../image/half-star.png'

},

{

"name": "手机充值",

"pic_url": '../image/half-star.png'

},

{

"name": "水电煤",

"pic_url": '../image/half-star.png'

}

]

},

}

})以上就是微信小程序中如何在wx:for里判断具体哪一个页面跳转的详细内容,更多请关注小潘博客其它相关文章!