<a href="#" _asd="xxxx" onclick="test(event)">test</a>
<sceipt>
function test(event){
    console.log(event.target._asd.value);
}
</script>

 

console打印:xxxx

相关文章:

  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
猜你喜欢
  • 2022-12-23
  • 2021-09-14
  • 2022-03-03
  • 2021-10-07
相关资源
相似解决方案