小程序學習心得之事件冒泡

1 catchtap和bindtap bind事件綁定不會阻止冒泡事件向上冒泡,catch事件綁定能夠阻止冒泡事件向上冒泡。web 2 在swiper組件中實現跳轉,能夠經過在swiper綁定catchtap事件,經過event.target.dataset.postid獲取點擊圖片對應idsvg 3 target 和currentTarget target指的是當前點擊的組件 和currentT
相關文章
相關標籤/搜索