Thông báo: Tất cả dự án phi thương mại đã đăng ký sử dụng Earth Engine trước ngày 15 tháng 4 năm 2025 phải xác minh điều kiện sử dụng phi thương mại để duy trì quyền truy cập vào Earth Engine.
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.
Không đồng bộ truy xuất giá trị của đối tượng này từ máy chủ và truyền giá trị đó đến hàm gọi lại được cung cấp.
Cách sử dụng
Giá trị trả về
Date.evaluate(callback)
Đối số
Loại
Thông tin chi tiết
this: computedobject
ComputedObject
Đối tượng ComputedObject.
callback
Chức năng
Một hàm có dạng function(success, failure), được gọi khi máy chủ trả về câu trả lời. Nếu yêu cầu thành công, đối số success sẽ chứa kết quả được đánh giá. Nếu yêu cầu không thành công, đối số failure sẽ chứa một thông báo lỗi.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["`Date.evaluate()` retrieves the value of a server-side `ee.Date` object and passes it to a callback function."],["The callback function receives the evaluated result as an object with `type` and `value` keys, where `value` represents milliseconds since the Unix epoch."],["Excessive use of `evaluate` can impact performance due to data transfer from Earth Engine servers to the client."],["The Python client library uses `getInfo()` instead of `evaluate` for asynchronous evaluation of `ee.Date` objects."]]],["The `Date.evaluate(callback)` method asynchronously retrieves a ComputedObject's value from the server. It uses a callback function with `success` and `failure` arguments to handle the server's response. If successful, `success` provides the evaluated result; otherwise, `failure` gives an error message. The JavaScript example transfers a server-side date to the client, revealing its \"type\" and \"value\" (milliseconds since Unix epoch). Python uses `ee.Date.getInfo()` for similar functionality.\n"]]