// 监听点击li改变背景色
mui(".zone-area").on('touchstart', 'li', function() {
this.style.background = 'lightgray'
});
mui(".zone-area").on('touchend', 'li', function() {
this.style.background = 'white'
});
通过 touchstart touchend 实现 hover 效果。
// 监听点击li改变背景色
mui(".zone-area").on('touchstart', 'li', function() {
this.style.background = 'lightgray'
});
mui(".zone-area").on('touchend', 'li', function() {
this.style.background = 'white'
});
通过 touchstart touchend 实现 hover 效果。
转载于:https://www.cnblogs.com/RAINHAN/p/7125134.html