new Vue({
el: "-sharpindex",
data: {
UserSetting:null
},
mounted: function() {
var _this = this;
var IMEI = plus.device.imei;
mui.ajax("http://..........", {
data: {
mac: IMEI,
device: 2
},
dataType: "json", //json
type: "post", //HTTP
timeout: 50000, //10;
success: function(res) {
_this.UserSetting = res;
}
error: function(xhr, type, errorThrown) {
console.log("");
}
});
}
});
:
<div id="index">
<div v-for="i in UserSetting">{{i.DEPT_NAME}}</div>
</div>
add the screenshot of the Great God
tried a lot of methods what {} [] null""all tried con is [obj Obj]
console.log(JSON.stringify(_this.UserSetting));
can also come out that the data is not assigned to the UserSetting. Ask the great god for an answer. Don"t tell me that the backstage is dead