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.
Đặt giá trị của một thuộc tính nhất định. Gây ra lỗi nếu đối tượng không hỗ trợ khoá được cung cấp. Xem các tham số của hàm khởi tạo để biết những thuộc tính nào có thể được đặt.
Trả về ui.data.ActiveDictionary này.
Cách sử dụng
Giá trị trả về
DrawingTools.set(keyOrDict, value)
ui.data.ActiveDictionary
Đối số
Loại
Thông tin chi tiết
this: ui.data.activedictionary
ui.data.ActiveDictionary
Đối tượng ui.data.ActiveDictionary.
keyOrDict
Đối tượng|Chuỗi
Khoá của thuộc tính cần đặt hoặc từ điển gồm các cặp khoá/giá trị cần đặt trên đối tượng.
value
Đối tượng, không bắt buộc
Giá trị mới của thuộc tính. Bạn phải làm việc này khi đối số đầu tiên là một chuỗi khoá.
[[["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."],[[["Sets the value of a specified property within a ui.data.ActiveDictionary object."],["Throws an error if the provided key is not a supported property, refer to the constructor parameters for valid properties."],["Accepts either a single key-value pair or a dictionary of key-value pairs to modify the object's properties."],["Returns the updated ui.data.ActiveDictionary instance, enabling method chaining."]]],["The `set` method of `ui.data.ActiveDictionary` modifies object properties. It accepts either a `keyOrDict` (string or object) and optionally a `value`. If `keyOrDict` is a string, `value` is mandatory, representing the new property value. If `keyOrDict` is an object it is a dictionary containing key/value pairs that will be applied to the object. Invalid keys trigger an error. It returns the modified `ui.data.ActiveDictionary` instance.\n"]]