网站后台成功的返回json数据,ajax使用get请求直接跳转到error,
mui.ajax('url是正确的完全没问题浏览器调试可正常返回json',{
dataType:'json',
type:'get',
timeout:10000,
success:function(data){
var list=document.getElementById("list");
var finallist='';
for(i=data.length-1;i>=0;i--){
finallist=finallist+'<p class="mui-input-row"><label><span class="spantitle">'+data[i].title+'</span><br /><span class="spanstyle">'+data[i].price+'</span></label><span class="yuan">¥</span><input type="text" class="mui-input-clear" placeholder=" 元"></p><p style="width:95%;border-bottom:1px solid #e7e7e7 ;margin-left: 5%;"></p>';
}
list.innerHTML=finallist;
},
error:function(){
plus.ui.toast('123');
}
})
})
json返回的是一个二维的json,需要如何处理???