jQuery를 사용하여 music.xml이라는 XML 파일 내용의 첫 번째 항목을 읽은 다음 DIV에서 5 초 동안 표시하고 다음 XML을 읽는 방법 항목을 표시하고 5 초 동안 표시하면 XML 파일을 반복 한 다음 처음부터 다시 시작 하시겠습니까?jQuery를 사용하여 XML 파일의 내용을 HTML로 순차적으로로드하는 방법
HTML :
<div id="music">
<div id="albumcover"></div>
<div id="songdescription"></div>
</div>
music.xml
<songs>
<item>
<image>music_01.jpg</image>
<description>Description of first song</description>
</item>
<item>
<image>music_02.jpg</image>
<description>Description of second song</description>
</item>
<item>
<image>music_03.jpg</image>
<description>Description of third song</description>
</item>
</songs>
그 'music.xml'파일은 어디에 있습니까? –
HTML 파일과 모든 JPG와 동일한 디렉토리에 있습니다 –