ajaxPost("Service1.svc/json/MyMethod", { "string" : "ana" }, bareResultWcfDate);
public Human MyMethod(string custName)
{
Human x = new Human();
x.name = custName;
return x;
}
在第一行代替“string”的是什么? 我在互联网上看到的每个例子都没有原始类型。Javascript调用带字符串参数的ajax方法
你能看到这个链接: http://stackoverflow.com/questions/8618052/wcf-service-restful – 2011-12-23 16:16:22