The ajax request was successful, but some of the data could not be accessed.

ajax requests background data. After console the msg, the data that appears shows that there is maxPage, but in the code, it will error that the maxPage is empty. What is the problem?
here is my code

$.ajax({
        url : "../../yqParameter/queryForList",
        // url : "../../json/test_smokeQuality_paramsync.json",// json
        data : {
            limit : rowNum,// 
            thisPage : pageNo,// 
            runningStatus : runstateo,// 
            msgStatus : msgstateo,// 
            lackStatus : qualitystateo,
            dtuImei : dtustateo,// DTU
            dvArea : valArea,// 
            dvName : mouSearch
        // 
        },
        type : "post",
        dataType : "jsonp",
        // dataType : "json",
        beforeSend : function() {
            $(window.parent.document).find("-sharploadings").show();
        },
        success : function(msg) {
            $(window.parent.document).find("-sharploadings").hide();
            $("-sharptabid tbody").empty();
            // console.log(msg);
            console.log(msg.data.maxPage);
            totalPage = msg.data.maxPage;
            totalRecord = msg.data.total;
            
            // console.log(totalRecord);
            kkpager.total = totalPage;
            kkpager.totalRecords = totalRecord;
            initpage(pageNo, totalRecord, totalPage);
            // table
            successmsg(msg);
            $(".loadings").hide();
        },
        error : function(jqXHR, textStatus, errorThrown) {
            autoLogin(jqXHR);
        }

    });

Apr.22,2021

read property 'maxPage' of null means xxx in xxx.maxPage is null


you report the wrong position and see if you are using maxPage correctly.

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