此代碼運行良好,但檔案進入根檔案夾。我在互聯網上沒有找到任何有用的...
function saveAsJSON() {
var blob,file,fileSets,obj;
obj = {//Object literal for testing purposes
key:"value"
}
/**
* Creates a file in the users Google Drive
*/
fileSets = {
title: 'file.json',
mimeType: 'application/json'
};
blob = Utilities.newBlob(JSON.stringify(obj), "application/vnd.google-apps.script json");
file = Drive.Files.insert(fileSets, blob);
Logger.log('ID: %s, File size (bytes): %s, type: %s', file.id, file.fileSize, file.mimeType);
}
uj5u.com熱心網友回復:
回答

轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/431214.html
下一篇:為水果陣列搜索正確的jq語法
