微信小程序
不屈白银
这个作者很懒,什么都没留下…
展开
-
微信小程序 地图导航
<view class="mapView" catchtap bindtap="pushMap" data-item="{{item}}"></view>在pushMap点击事件中跳转到地图界面 wx.openLocation方法会打开一个地图界面。pushMap: function(e) { //开启地图导航 wx.openLocation({ //浮点型的经纬度 latitude: 39.90960456049752...原创 2021-01-18 14:00:58 · 320 阅读 · 1 评论 -
微信小程序 form-data传参
/** * post请求封装(不需要头文件) * @param {*} uri 请求地址 * @param {*} params 请求参数 * @param {*} success 成功方法 * @param {*} fail 失败方法 */function httpRequest(uri, params, success) { wx.showLoading({ title: '加载中...', }) wx.request({ url: host+uri, .原创 2020-09-25 10:42:38 · 2009 阅读 · 0 评论