Js cycle child node problem

clipboard.png
clipboard.png
clipboard.png
clipboard.png
the value of each child node in the circular array somehow gets either the value of the last child node or the value added together

Mar.04,2021

you should put the second loop inside the first loop.

for (let i in data.data) {
  y = i;
  ...
  let line = ...
  for (let x in line)
}
Such a simple logic error as
$.ajax({
    type:"GET",
    url:"json/index.json",
    async:true,
    success: function (data) {
        let list = '';
        for (let i in data.data) {
           
            //
            let pic = '';
            let line = data.data[i].picurl
            for (let x in line) {
                pic += `<div class="image"><img src="${data.data[i].picurl[x].pic}"></div>`
            }
            
            list += `<li>
                <a href="javascript:">
                    <div class="list_top flex">
                        <div class="head-time f1">${data.data[i].time}</div>
                        <div class="head-true_false f1">${data.data[i].state}</div>
                    </div>
                    <div class="content_img">${pic}</div>
                    <div class="footer">
                        <div class="number_monet">${data.data[i].numbers}<span class="money">${data.data[i].money}</span></div>
                        <div class="fd">
                            <object><a href="javascript:" class="btn">${data.data[i].btn}</a></object>
                        </div>
                    </div>
                </a>
            </li>`; 
        }
    }
    $('.list_ul').prepend(list)
});

!

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b368fe-2c028.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b368fe-2c028.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?