Enum RecalculationInterval
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Khoảng thời giantính toán lại
Một enum đại diện cho các khoảng thời gian có thể dùng trong tính toán lại bảng tính.
Để gọi một enum, bạn gọi lớp mẹ, tên và thuộc tính của enum đó. Ví dụ:
SpreadsheetApp.RecalculationInterval.ON_CHANGE
.
Thuộc tính
Thuộc tính | Loại | Mô tả |
ON_CHANGE | Enum | Chỉ tính toán lại khi các giá trị thay đổi. |
MINUTE | Enum | Tính toán lại khi giá trị thay đổi và mỗi phút. |
HOUR | Enum | Tính toán lại khi giá trị thay đổi và mỗi giờ. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eRecalculationInterval\u003c/code\u003e is used to control the frequency of spreadsheet recalculations within Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three options: \u003ccode\u003eON_CHANGE\u003c/code\u003e, \u003ccode\u003eMINUTE\u003c/code\u003e, and \u003ccode\u003eHOUR\u003c/code\u003e, allowing for recalculation triggered by value changes, every minute, or every hour, respectively.\u003c/p\u003e\n"],["\u003cp\u003eTo use these options, refer to them using the format \u003ccode\u003eSpreadsheetApp.RecalculationInterval.[property]\u003c/code\u003e, such as \u003ccode\u003eSpreadsheetApp.RecalculationInterval.ON_CHANGE\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum RecalculationInterval\n\nRecalculationInterval\n\nAn enumeration representing the possible intervals used in spreadsheet recalculation.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.RecalculationInterval.ON_CHANGE`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------|--------|--------------------------------------------------------|\n| `ON_CHANGE` | `Enum` | Recalculate only when values are changed. |\n| `MINUTE` | `Enum` | Recalculate when values are changed, and every minute. |\n| `HOUR` | `Enum` | Recalculate when values are changed, and every hour. |"]]