function sqlhelper(datas)
{
var msgjson=null;
mui.ajax({
url : 'http://192.168.30.123:32100/login.aspx',
data : datas,
dataType: 'json',
type : 'get',
timeout : 10000,
async : false,
success : function(msg){
alert(JSON.stringify(msg));
msgjson=msg;
},
error : function(xhr,type,errorThrown)
{
return null;
}
});
return msgjson;
}
success里的msg是能够成功获取数据的,但是赋值给msgjson后整个函数的返回值就是null,求教什么问题