【发布时间】:2013-02-13 14:06:23
【问题描述】:
我正在跨域进行 AJAX 登录,请求已正确发送并从其他域获得响应,但我的 onSuccess 函数没有被调用。 我试过在请求中写 onsuccess 像
sucess : function(){}
但它也没有被调用。
我的代码 sn-p:
new Ajax.JSONRequest(this.preCheckUrl, {
callbackParamName: "jsoncallback",
parameters: {
userEmail: this.userEmail, userPassword: this.userPassword, format: 'json'
},
onSuccess:function(response) {
alert('hello');
} });
-谢谢。
【问题讨论】:
标签: ajax json cross-domain jsonp