<view bindtap="btnFun">点击</view>
btnFun:function(){
wx.vibrateShort(); // 1、使手机震动15ms
//或者
wx.vibrateLong(); // 2、使手机震动400ms
}
如有更好的方法,期待你的评论留言指教 ^ * ^
<view bindtap="btnFun">点击</view>
btnFun:function(){
wx.vibrateShort(); // 1、使手机震动15ms
//或者
wx.vibrateLong(); // 2、使手机震动400ms
}
如有更好的方法,期待你的评论留言指教 ^ * ^