• 微信小程序PHP 微信支付接口调用
    微信小程序PHP 微信支付接口调用2023-06-20

    小程序端/** * 微信支付接口 */ wxPaymoney:function (out_trade_no, true_money){ //out_trade_no 后台统一下单接口需要用 var that = this wx.hideToast() //......

    查看详情
  • 微信小程序日期输入框写法
    微信小程序日期输入框写法2022-04-21

    微信小程序日期输入框写法JS部份示例: bindDateChange: function (e) { this.setData({ date: e.detail.value }) },wxml部份写法示例:<view class="input-content"> ......

    查看详情
  • 微信小程序setTimeOut()  setInterval()的正确写法
    微信小程序setTimeOut() setInterval()的正确写法2022-04-21

    setTimeout()错误写法: setTimeout( { console.log("hello World"); }, 2000)正确写法: setTimeout(()=> { console.log("hello World&q......

    查看详情
  • 微信小程序rich-text 里的img加class和style属性
    微信小程序rich-text 里的img加class和style属性2022-04-19

    微信小程序rich-text 里的img加class和style属性var content = content.replace(/<img/gi, "<img class='richImg' style='width:100%!important;height:auto!i......

    查看详情
  • bindtap和catchtap的区别
    bindtap和catchtap的区别2022-04-12

    bindtap和catchtap都属于点击事件函数,将事件绑定到组件上,点击组件后可以触发函数。二者的区别在于是否冒泡事件。冒泡事件:当一个组件上的事件被触发后,该事件会向父节点传递。非冒泡事件:当一个组件上的事件被触发后,该事件不会向父节点传递。举一个例子说明:wxml部分:说明:由以上代码可以看到,总共包含了三个v......

    查看详情
  • 微信小程序swiper导航滑动demo
    微信小程序swiper导航滑动demo2022-04-11

    wxml中关键代码:<view class="swiper-tab"><view class="swiper-tab-list {{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap=&......

    查看详情
热门文章