개발/javascript & jquery
[JavaScript] $(function(){})이란?
멋진놈
2023. 1. 2. 16:33
728x90
# $(function(){})
$(function(){}) => $(document).ready(function(){});와 같은 의미.
DOM(Document Object Model) 객체가 생성되어 준비되는 시점에서 호출된다는 의미.
즉 document.onload() 동작과 비슷하다.
html이 시작되면 , 문서(html)이 로딩이 되면 호출된다는 뜻.