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