頁面上有一部分是react router4 Link 生成的a標簽, 一些是原生的a標簽。 我需要監(jiān)聽頁面上的所有a, 如何區(qū)分react router Link生成的a標簽, 和正常的a標簽?zāi)兀?('body').on('click', 'a', function (e){ console.log(e)
e.preventDefault()
})
如何區(qū)分react router Link生成的a標簽, 和正常的a標簽
動漫人物
2018-12-09 20:27:35