文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>jquery.ajax() call wcf,success,how to use wcf return value?

jquery.ajax() call wcf,success,how to use wcf return value?

时间:2010-11-25  来源:庹庹

 

 

 

 

 

 

$txtZip.bind(

'change',function(){       

$.ajax({type:

"POST",

    url: http://www.tree.com/fossa/svc/Geo.svc/GetPostalCodeInfoJson,

    data:

 '{"postalCode":"' + $txtZip.val() + '"}',

    contentType:

 "application/json; charset=utf-8",

    dataType:

"json",

    success:

function(ret) {

          alert(ret[0].Place);

         },

  error:

function (xhr){alert("error");}

});

});

the return value ,success:function(ret),'ret' is the wcf method return value

相关阅读 更多 +
排行榜 更多 +
火柴人霓虹战争无限金币

火柴人霓虹战争无限金币

冒险解谜 下载
火柴人英雄格斗无限金币版

火柴人英雄格斗无限金币版

冒险解谜 下载
摔跤革命3d汉化版

摔跤革命3d汉化版

冒险解谜 下载