javascript - How to obtain the data bound in the child element (swipe-item) in the change event handler of the applet swiper component
给我你的怀抱2017-05-19 10:15:56
0
1
1578
As the title says, sub-elements such as <swiper-item data-xxx="xxx"></swiper-item>, how to get the data tied to swiper-item in swiper's change event processing function?
Use event bubbling, and then obtain data through e.target.dataset