일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- 230508
- DFS
- serializable
- parcelable
- 함수 인자
- 230510
- 230503
- Adapter
- null-safety
- ActionBar
- html
- javascript
- fragment
- 데이터 타입
- Flutter
- 안드로이드
- putextra
- DOMContentLoaded
- querySelector
- classList
- C++
- 인텐트
- Class
- textContent
- 프래그먼트
- 부가데이터
- string
- 생명주기
- ViewPager
- intent
- Today
- Total
목록DOMContentLoaded (2)
나만의 개발노트
[나의 코드] - app.js // local reviews data const reviews = [ { id: 1, name: 'susan smith', job: 'web developer', img: 'https://images2.imgbox.com/e0/57/qI5bbwvg_o.jpeg', text: "I'm baby meggings twee health goth +1. Bicycle rights tumeric chartreuse before they sold out chambray pop-up. Shaman humblebrag pickled coloring book salvia hoodie, cold-pressed four dollar toast everyday carry", }, { id: 2,..

DOMContentLoaded : DOM트리가 완성되면 바로 실행된다. (스타일 시트, 이미지, 하위 프레임의 로딩을 기다리지 않음) window.addEventListener('DOMContentLoaded', (event) => { //실행될 코드 }); => 장점 : onload 이벤트보다 먼저 발생함. 빠른 실행속도가 필요할 때 적합하다. *onload : 문서의 모든 자원이 다운로드 되었을 때 발생 window.addEventListener('DOMContentLoaded',()=>{ const item = reviews[currentItem]; img.src = item.img; author.textContent = item.name; job.textContent = item.job; info..