![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信小程序开发
youz1976
天天向上
展开
-
微信小程序的订阅消息
微信小程序的订阅消息原创 2022-08-31 20:31:02 · 116 阅读 · 0 评论 -
微信小程序 ios picker 显示1年 2年
去掉model为date,fields为year 的picker标签中的value属性和值。原创 2020-03-03 16:39:03 · 817 阅读 · 0 评论 -
微信小程序 bindinput 没效果
1、写法如下,但是没效果<input type="number" placeholder="请输入手机号" class="inp-holder" maxlength="11" bindinput="getPhone" />// 拿到手机号 getPhone: function (e) { var val = e.detail.value; ...原创 2020-01-02 19:16:52 · 3997 阅读 · 1 评论 -
微信小程序wx.uploadFile上传图片以后setData没有作用
wx.chooseImage({ success (res) { const tempFilePaths = res.tempFilePaths wx.uploadFile({ url: 'https://example.weixin.qq.com/upload', //仅为示例,非真实的接口地址 filePath: tempFilePaths[0],...原创 2019-06-12 19:41:21 · 1087 阅读 · 0 评论 -
微信小程序dataset 时属性要为小写
赋值<view data-myid="{{item.id}}" bindtap="gotoDetails"></view>取值gotoDetails: function (e) { var id = e.currentTarget.dataset.myid;}切记data-myid为小写,包含大写会得到undefined...原创 2019-06-15 23:24:57 · 877 阅读 · 0 评论 -
微信小程序 点击预览单个图片
wxml文件<view> <image class='img' src='{{img}}' bindtap='previewImage' data-src="{{img}}"></image></view>js文件 data: { img:'http://img3.imgtn.bdimg.com/it/u=3652...原创 2019-07-07 22:41:07 · 6100 阅读 · 6 评论