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