我指的是以下C#方法:
[WebMethod(true)]
public static List<ReadUserStructure> LoadFriends()
{
List<ReadUserStructure> returner = Friend.ReadAllFriends();
return returner;
}
The following jQuery:
$.ajax({
type: "POST",
url: "Main.aspx/LoadFriends",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) { alert(msg.Count.toString()); }
});
我在C#方法上有一个突破点,它击中了它。 通过这一方法,该功能进行细微的工作,在我的用户中,编制一个清单,列出2个。 但是,如果这份名单没有归还给客户的话。 任何想法?