private string CreateJoson(string result, string message)
{
return "{" + ""result":"" + result + "","messageInfo":"" + message + ""}";
}
例如: return CreateJoson("flase", "授权失败");
前台返回的date 判断date if(data.result=="flase"){alert(date.messageInfo);} date.result 或date.messageInfo