阻止捕获和冒泡阶段中当前事件的进一步传播
mounted () { document.querySelector('.demo-box').onclick = (e) => { e.stopPropagation() } },
goTop () { document.querySelector('.goTop-box').scrollTop = 0; },
posted on 2018-09-11 10:43 逢时 阅读(65) 评论(0) 编辑 收藏 举报