javascript - WeChat applet How to implement this method of swiping left to delete? Is there any relevant API?
给我你的怀抱2017-06-10 09:49:10
0
2
874
I am working on a shopping mall page recently. There is a function in the shopping cart that allows you to slide your finger to the left to display a delete button. How can I achieve this? This function is based on JD.com’s shopping cart~
Make the width a little longer and set overflow:hidden, and then add the gesture time. When swiping left, the left will be displayed to slide out the hidden delete button
There is no API out of the box, but link description can be implemented through events
Case reference address
Make the width a little longer and set overflow:hidden, and then add the gesture time. When swiping left, the left will be displayed to slide out the hidden delete button
At least that’s what I wrote in other projects