87,921
社区成员
发帖
与我相关
我的任务
分享
[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类型