这是我的代码,你们看下有什么问题吗?怎么感觉mui框架中的ajax真的很不好用呀,完全没有成功过一次?
mui.plusReady(function(){
mui.ajax({
type: 'get',
url: 'http://localhost:8080/selectAll',
/*headers: {
'Content-Type': 'application/json'
},*/
dataType: "json",
success: function(data) {
mui.alert('ooooo');
console.log(data);
},
error: function(xhr, type, errorThrown) {
alert(type);
}
});
});