小程序中如何写点击按钮时变色,松开后又恢复为原来的颜色

240 阅读1分钟

小程序的点击事件里,有下面的方法。

bindtouchstart="handleTouchStart" //按下未松开
bindtouchend="handleTouchEnd" //松开

再写出你想要的操作就行了