【发布时间】:2012-03-06 01:29:15
【问题描述】:
我正在使用淘汰赛,这是我的 ajax 代码:
save: function() {
$.ajax({
url:"http://localhost/loyalty/welcome/json/",
type: "post",
data: ko.toJSON(this),
contentType: "application/json",
success: function (result) { alert(result) }
});
}
使用firebug我可以看到json消息发送正确,问题是如何在PHP上接收它,发送的名称是什么?
我正在使用 CodeIgniter
提前感谢您的帮助。
【问题讨论】:
标签: php ajax json knockout.js