62,266
社区成员
发帖
与我相关
我的任务
分享
[WebMethod()]
public static void test(string ID) //这个ID应该是大写
{
//这里前台的id已经传过来
}
function test() {
var id = document.getElementById("txtDnValue").value;
$.ajax({
type: "POST",
async: false,
url: "Test.aspx/test",
data: "{ID:" + id + "}",
dataType: "json",
contentType: "application/json; charset=utf-8",
success: function(msg) {
}
});
}
[WebMethod()]
public static void test(string id)
{
//这里前台的id已经传过来
}