我有以下方法:
private /*some type*/ abc(string a, string b){
//...
return new { success = false, responseText = "Input-Values not valid" };
}
对象不是我搜索的类型,因为我无法访问abcReturn.success并且abcReturn.responseText在第二种方法中。还是有其他方法可以访问successand的值responseText?因为在调试时,我可以看到它abcReturn确实包含了 success 和 responseText 的值。
我想以这种方式返回它,因为在第三种方法中,我想做return Json(abc(), JsonRequestBehavior.AllowGet);
哈士奇WWW
慕沐林林
相关分类