假设有一个id为testA的a元素,然后有以下代码(jquery已存在): $(document).ready(function(){ $('#testA').on('testEvent', function(e,data1,data2,data3){ console.log(e,data1,data2,data3); }); var ba = document.getElementById('testA'); ba.addEventListener('testEvent', function(…