Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论当前工作表名称是什么,如何创建脚本来重命名工作簿中的第二个工作表?
我有一个脚本可以删除除第一张和第二张之外的所有工作表。
然后我想用今天的日期重命名第二张纸。除了重命名,我拥有其他一切。
function myFunction() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var tz = ss.getSpreadsheetTimeZone(); var sheets = ss.getSheets(); var date = Utilities.formatDate(new Date(), tz, 'MM-dd-yyyy'); sheets[1].setName(date); // Rename second }
参考
我正在制作一个 Spring MVC Web 项目,我必须有一个恒定的标题。
我的基本要求是“我们希望在所有屏幕上都有一个标题,以显示谁登录了 ProjectA。”
我从这里查看了 jsp:include 或 %@include 3 css - 三列具有 33% 的宽度和边距/填充。为什么最后一列中断?