js如何动态添加事件并设置参数a1.addEventListener("click", function () { window.location.href = "newsDetail.aspx?id=" + this})在这个c2023-04-25JavaScript510