拒绝显示'https://accounts.google.com/o/oauth2/auth?client_id=******',因为它将"X-frame-Options"设置为"SAMEORIGIN"。
单击此处查看chrome控制台错误
在auth.js 中执行googleApiClientReady()代码时
// Upon loading, the Google APIs JS client automatically invokes this callback.
googleApiClientReady = function() {
gapi.auth.init(function() {
window.setTimeout(checkAuth, 1);
});
}
尝试类似的东西
gap.auth.authorize({client_id:clientId,scope:作用域,立即:立即},handleAuthResult);