在退出过程中,我正在调用intuit.ipp.anywhere.logout并向其传递一个回调函数。回调函数处理正确;但是,它不会退出应用程序中心。其他人有类似的问题吗?
logout: function (callback) {
intuit.ipp.jQuery.ajax({
Uncaught TypeError: Cannot call method 'ajax' of undefined (repeated 2 times)
url: "https://" + intuit.ipp.anywhere.serviceHost + "/Account/LogoutJSONP?callback=?",
dataType: "jsonp",
complete: function () {
callback();
//intuit.ipp.anywhere.view.popup.hide();
}
});
//intuit.ipp.anywhere.view.logout.render(callback);
return false;
}
答案 0 :(得分:1)
您是否包括https://js.appcenter.intuit.com/Content/IA/intuit.ipp.anywhere.js?我不确定“未捕获的TypeError ......”的来源
这个简单的测试HTML页面工作正常:https://dl.dropbox.com/u/19213950/logout.html 登录到AppCenter后,单击此测试HTML上的注销链接,您应该看到AppCenter会话失效。