小程序
c v 大师
这个作者很懒,什么都没留下…
展开
-
微信小程序传参列表页到详情页
列表页:<view wx:for="{{lists}}" wx:for-index="index" wx:for-item="item" wx:key="id" bindtap="jump" data-index="{{item}}">data:{ lists:[ { id:'0', age:'0', name:'000' }, { id:'1', age:'1', name:'111' }, { id:'2', ag原创 2022-02-28 14:53:18 · 558 阅读 · 1 评论 -
微信小程序获取当前位置
wxml:<view> <button type="primary" bindtap="clicktop">地图</button></view>js:Page({ data: { markers: [], //地图参数: latitude: "", //纬度 longitude: "", //经度 }, clicktop(e) { let that = t原创 2022-02-24 15:05:28 · 1004 阅读 · 0 评论