728x90
항해99 강의를 따라하다 script에 기재하라고 하셔서 기재는 했는데 이게 뭘까?
<script>
$(document).ready(function () {
get_posts()
})
</script>
위 코드는 jQuery를 사용한 웹페이지를 시작할 때 쓰는 코드!
get_posts()함수가 페이지에 로딩되었을 때, 실행되게 하려면 위 코드를 쓰면 된다.
728x90
'제니의 개발일지 > 도움이 되었던 것 정리' 카테고리의 다른 글
Module not found: Error: Can't resolve '@mui/icons-material' (0) | 2022.08.03 |
---|---|
error create@0.0.2: The engine "node" is incompatible with this module 오류 해결방법 (0) | 2022.07.29 |
node:internal/modules/cjs/loader:936 throw err; ^ 오류 해결방법 (0) | 2022.07.20 |
AttributeError: 'str' object has no attribute 'decode' 오류 해결방법 (0) | 2022.07.12 |
항해99 Git 공부 1주차 (0) | 2022.07.10 |