How does vue assign json to data

problem description

bothered me for several days, but how to assign values to iteam after ajax got the data? I don"t know why I asked for a great solution. I tried a lot of methods

.

the environmental background of the problems and what methods you have tried

related codes

new Vue ({

        el: "-sharpa-weather-waring",
        data: {
            iteam: null
        },
        methods: {
            Get_YJweather: function() {
                var _this = this;
                mui.ajax("http://WeatherHandler.ashx?method=Get_YJweather", {
                    data: {
                        timefrom: "2018-12-04",
                        timeto: "2018-12-04"
                    },
                    dataType: "json", //json
                    type: "post", //HTTP
                    timeout: 50000, //10;
                    success: function(res) {
                        _this.iteam = res;
                        console.log(res);
                    },
                    error: function(xhr, type, errorThrown) {

                    }
                });
            }
        }
    });

what result do you expect? What is the error message actually seen?

Jan.10,2022

what do you see in _ this.iteam under console


item by default you give null, if you need a collection loop, it will already be error at initialization, and you can't render it even if you fill in the data.

  

guys, I'm done. SB backstage gave me string shit. I always thought that json beat me not by code, not by vue, but by trust between people

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