<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">\
<script type="text/javascript" src="https://apis.google.com/js/api.js"></script>
<script type="text/javascript">
init = function() {
s = new gapi.drive.share.ShareClient('<YOUR_APP_ID>');
//在JS中获取file-id的方法是什么。我想把文件分享给不同的用户 s.setItemIds([""]); }
window.onload = function() {
gapi.load('drive-share', init);
}
</script>
</head>
<body>
<button onclick="s.showSettingsDialog()">Share</button>
//showSettingDialog() 是如何工作的
</body>
</html>