The HTMLCollection collection can print values, but cannot get each value.

var imgs = $("-sharppictureQueryTable img").prevObject[0].images;

the following figure is the printed result of the above sentence:
clipboard.png

console.loglength0dom

console.log($("-sharppictureQueryTable img"))

clipboard.png

clipboard.png

:

clipboard.png

:

clipboard.png

{
            title : "",
            name : "PICTURE_NAME1",
            width : 320,
            lockWidth : false,
            align : "center",
            renderer : function(val, item, rowIndex) {
                if (item.COLLECTION_NAME1 != undefined) {
                    picture_path = "image/no_picture.png";
                    var picture_name = item.COLLECTION_NAME1 + "("
                        + item.COLLECTION_CODE1 + ")";
                    if (item.PICTURE_PATH1) {
                        picture_path = getLocaleHostPath()
                            + item.PICTURE_PATH1;
                    }
                    val = val != null ? val : "";
                    return "<div style="width:310px;height:100%;text-align:center;background-color:white;padding-top:5px;"><div>"
                        + "<a href="javascript:void(0)" onclick="openPage(\"html/showcenter/collection/collectionstatistical/picturequery/PictureDetailInfo.html?id="
                        + item.COLLECTION_ID1
                        + "&collection_code="
                        + item.COLLECTION_CODE1
                        + "\",\"1300,600\")">"
                        + "<img alt="" style="width:200px;height:200px;" title=""+val+"" src=""+picture_path
                        +""/></a></div><span style="margin-top:5px;">"
                        + picture_name + "</span></div>";
                } else {
                    return "";
                }
            }
        }
Mar.13,2021

look up the data. Some people say that you can't operate until the dom structure is fully loaded, but it still doesn't work after trying.

that's why. See that exclamation point? click on it. There is no value in it when you print it, it is a reference when you print it, and it is only valuable when you take a snapshot when you view it. Either the breakpoint or JSON.stringify () turn around.

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