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
1520

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?

给我你的怀抱
给我你的怀抱

reply all(1)
洪涛

Use event bubbling, and then obtain data through e.target.dataset

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!