12,162
社区成员
发帖
与我相关
我的任务
分享
var json = ....... . //json格式的字符串
$.ajax({
url: "http://localhost:3770/XXXService.svc/InsertCCFB",
type: "POST",
contentType: "application/json",
data: '{ "ccfb":' + json + '}',
dataType: "json",
success: function (returnValue) {
alert(returnValue);
},
error: function () {
alert('没有进入');
}
});
[WebInvoke(Method = "POST", UriTemplate = "/InsertCCFB", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]
string InsertCCFB(CCFB ccfb);