标签:option dex 跳转 pre for div cti XML this
功能从index页面跳转到draw页面,并在draw页面获取id及imgUrl
index.wxml
<navigator class=‘looks-view‘ wx:for="{{imgUrlNew}}" wx:key="index" url="/pages/draw/draw?id={{item.id}}&imgUrl={{item.img}}"> <image src=‘{{item.img}}‘ class=‘looks-view-image‘></image> <text class=‘looks-view-text‘>{{item.name}}</text> </navigator>
在draw.js中:
data: { id:‘‘, imgUrl:‘‘ }, onLoad: function (options) { this.setData({ id: options.id, imgUrl: options.imgUrl }) },
标签:option dex 跳转 pre for div cti XML this
原文地址:https://www.cnblogs.com/dekevin/p/10229074.html