
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
function renderRandomImage() { let imageList = []; // 이미지 개수를 변경하려면 i=5의 값을 이미지 개수만큼 바꿔주세요! for (i = 0; i < 5; i++) { imageList.push(i); } let imageListLength = imageList.length; let randomImage = Math.floor(Math.random() * (imageListLength))+1 randomImage = `images/${randomImage}.jpg` $(document.body).css("background-image", `url(${randomImage})`); }
이부분 넣었는데 적용이 안되네요 ㅜㅜ
index.html에서도 코드 수정할 부분이 있는건가요? 어떻게 수정해야할까요?? 시간 변경할때 생각해보면 <id= > 이런 코드가 들어가야 작동할 것 같은데 어디에 넣어야 하는지 모르겠어요 ㅠ
