使用上:
$('#registered_participants').on('click', '.new_participant_form', function() {这样,即使在绑定事件处理程序之后添加了单击,也可以将单击委派给
#registered_participants具有class的任何元素
new_participant_form。

使用上:
$('#registered_participants').on('click', '.new_participant_form', function() {这样,即使在绑定事件处理程序之后添加了单击,也可以将单击委派给
#registered_participants具有class的任何元素
new_participant_form。