我相信在将点击事件添加到 DOM 之前将其附加到 JQuery 对象是这样完成的。
$('.Button').on('click', '#Your-Selection', function () {
console.log("yeahhhh!!! but this doesn't work for me :(");
});
有没有办法将它附加到#Your-Selection 的跨度子项。这不起作用,但类似于:
$('.Button').on('click', '#Your-Selection span', function () {
console.log("yeahhhh!!! but this doesn't work for me :(");
});