api.ajax({
url:'http://192.168.2.4/home/index/index',
method:'get',
timeout:5,
dataType:'json',
returnAll:false
},function(ret,err){
alert(JSON.stringify(ret));
});