JQ中的.on()方法,能不能仅仅限定一个按钮所用?请大家帮忙看看哪里出问题了。

2025-04-05 01:12:34
推荐回答(1个)
回答1:

$("#box:first").on("click",".button",function(){	$(this).clone().appendTo("#box");	});

加:first筛选,只有第一个有事件