$("p").bind("click", function(event){
// code goes here
});
이것은 매우 이해할 수 있습니다. 그러나 비 인라인 함수를 사용하고 이벤트를 인수로 전달하는 방법은 무엇입니까? 즉 :bind (type, [data], fn) 및 비 인라인 함수 사용
$("p").bind("click", myFunction(event));
function myFunction(event) {
// code goes here
}
고마워요!