problem description
if you look at the picture, you won"t be able to get the data. I don"t know how to ask God to save me
.the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
new Vue ({
el: "-sharpa-weather-waring",
data: {
weatherWaring:null,
v_time_from2: null,
v_time_toto2: null
},
methods: {
Get_YJweather: function() {
this.v_time_from2 = this.$refs.v_time_from.value;
this.v_time_toto2 = this.$refs.v_time_toto.value;
mui.ajax("http://lbzhywpt.portdalian.com:999/WeatherHandler.ashx?method=Get_YJweather", {
data: {
timefrom: this.v_time_from2,
timeto: this.v_time_toto2
},
dataType: "json", //json
type: "post", //HTTP
timeout: 10000, //10;
success: function(result) {
console.log(result);
this.weatherWaring = result;
console.log(weatherWaring);
},
error: function(xhr, type, errorThrown) {}
});
},
}
});