
微信小程序
meahu
为什么?
展开
-
微信小程序踩坑历险记 1 —— 表单取值为字符串
input 有这样的事件:bindinput、bindfocus、bindblur、bindconfirm,通过这些事件能拿到表单的相关信息。 如 function bindinput(e){ var number = e.detail.value; console.log(number>80); },通过 e.detail.value 拿到的值是字符串类型,当拿它来直接进行数值大原创 2017-03-04 17:21:24 · 754 阅读 · 0 评论 -
微信小程序,bindtap事件遇上bindtouchend事件,bindtouchend事件先触发
现有某元素同时绑定了两个事件:bindtap、bindtouchendwxml:<view bindtouchend="touchend" bindtap="tap">事件之旅1</view><view bindtouchend="touchend"> <view bindtap="tap">事件之旅2</view> </view><view bindtap="tap"> <view原创 2017-04-13 17:43:38 · 18043 阅读 · 0 评论