1
客户端:我如何获得使用JQuery从服务(WCF)返回的值?
$("#btn").click(function (event) {
$.getJSON('http://host/myservice.svc/GetCount?method=?', { Id: '2' }, function (customer) {
//how to get an value ??? here ????
});
//return false;
});
服务器
public long GetCount(string method, string Id)
{
return 100;
}
您是如何定义JSONP端点? – 2010-11-22 21:33:44