If there is an attribute in the helper js object whose value is 0 of type number, this property disappears, and if you change 0 from number to a string, it exists.

clipboard.png

clipboard.png

Apr.28,2022

console.log typed out a reference, and the expanded content may change, but the top line is a snapshot
your case shows that the key delete with attribute number 0 somewhere in the code after console.log


for (var i in data) {
                        if (data[i] == "") {
                            delete data[i]
                        }
                    }

has found the reason, because the following code clears the empty string using = = will clear 0, too, and change it to =. Now there is a new question, why does the following code affect the above, doesn't js execute from top to bottom


try console.log (JSON.stringify (data)) to see the current data property, but convert it to a string

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-1b3c46c-2ba7a.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-1b3c46c-2ba7a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?