$(function () {
$(document).on("click", ".hihi", function (){ console.log(1); });
})
이렇게 하나
$(document).on("click", ".hihi", function (){
console.log(1);
});
이렇게하나 똑같은거 아님??
$(function () {
$(document).on("click", ".hihi", function (){ console.log(1); });
})
이렇게 하나
$(document).on("click", ".hihi", function (){
console.log(1);
});
이렇게하나 똑같은거 아님??
뭔진 모르겠지만 코드 가독성이 빻았다 나라면 둘다 안씀