87,997
社区成员




[WebMethod]
public static void TestFn<T>(int t) {
}
$.ajax({
type: "POST",
url: "testFn.aspx/TestFn",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: "{t:1}",
success: function (msg) {
},
error: function (msg) {
}
});
忽略,T又没有返回,也不需要传递对象。只传int还要T类型