2
我正在尝试给出的示例here。具体地讲,下面的代码是给我找麻烦:在Google Drive示例中未调用handleClientLoad函数
<script type="text/javascript" src="https://apis.google.com/js/client.js?onload=handleClientLoad"></script>
<script type="text/javascript">
var CLIENT_ID = 'xxx...';
var SCOPES = [
'https://www.googleapis.com/auth/drive.file',
'email',
'profile',
];
function handleClientLoad() {
alert("Hi");
checkAuth();
}
我跟踪,文件client.js
是我的浏览器下载。但是,handleClientLoad()
未被调用。
该示例是否完整且可运行或者是否有其他需要?