公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ui.url.get
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
从网址 fragment 中返回指定键的值。
用法 | 返回 |
---|
ui.url.get(key, default) | Boolean|Number|Object|String |
参数 | 类型 | 详细信息 |
---|
key | 字符串 | 要读取的参数的名称。 |
default | Boolean|Number|String,可选 | 如果不存在任何值,则返回可选的默认值。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eRetrieves a specific value from the URL fragment using the provided key.\u003c/p\u003e\n"],["\u003cp\u003eReturns the value associated with the key, which can be a boolean, number, object, or string.\u003c/p\u003e\n"],["\u003cp\u003eIf the key is not found in the URL fragment, an optional default value can be returned.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eui.url.get(key, default)\u003c/code\u003e function for accessing the fragment value.\u003c/p\u003e\n"]]],[],null,["# ui.url.get\n\n\u003cbr /\u003e\n\nReturns the value of the given key from the URL fragment.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------|---------------------------------|\n| `ui.url.get(key, `*default*`)` | Boolean\\|Number\\|Object\\|String |\n\n| Argument | Type | Details |\n|-----------|-----------------------------------|----------------------------------------------------------|\n| `key` | String | The name of the parameter to read. |\n| `default` | Boolean\\|Number\\|String, optional | optional default value to return if no value is present. |"]]