<p onclick="test()">测试 <script> function test(){ console.log(event.currentTarget); console.log(event.target); } script>
function test(event)里面是不是把参数忘了?有帮助的话采纳一下哦!