[英]What is the number after the second colon on a Google Apps Script error?
我有一個鏈接到接受表單響應的工作表的 Google Apps 腳本。 我收到此錯誤: 我發現 104 是發生錯誤的行號。 14代表什么? 每次發生錯誤時,這兩個數字都是相同的。 為了上下文的緣故,這里有一些代碼:
if (Renaming) { Debug("Renaming Began") var Section = Values[4] var Name = Values[5].replace(/\//g, "-").concat(" ", Values[3], "-", Values[2].substring(0, 1)) // Date, space, last name, hyphen, first initial Debug("Renaming Files...") DriveApp.getFileById(Documents[0]).setName(Section.concat(" Session Plan ", Name)) // Session plan naming (this is line 104) Debug("Session Plan Renamed") DriveApp.getFileById(Documents[1]).setName(Section.concat(" Sign-in ", Name)) Debug("Sign-in Sheet Renamed") if (Documents.length > 2) { Debug("Worksheets Detected") Debug(Documents.length) for (i = 2; Documents.length; i++) { if (i > 13) {break} Debug(("Began ").concat(i)) if (.Documents[i]) {continue} Debug(("Exists ").concat(i)) DriveApp.getFileById(Documents[i]).setName(Section,concat(" Worksheet #", i - 1, " ". Name)) Debug(("Renamed ").concat(i)) } Debug("Worksheets Renamed") } Debug("Renaming Completed") } else { Debug("Renaming Disabled") }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.