ui.url.get
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, यूआरएल फ़्रैगमेंट से दी गई कुंजी की वैल्यू दिखाता है.
इस्तेमाल | रिटर्न |
---|
ui.url.get(key, default) | बूलियन|संख्या|ऑब्जेक्ट|स्ट्रिंग |
आर्ग्यूमेंट | टाइप | विवरण |
---|
key | स्ट्रिंग | पढ़ने के लिए पैरामीटर का नाम. |
default | बूलियन|संख्या|स्ट्रिंग, ज़रूरी नहीं | अगर कोई वैल्यू मौजूद नहीं है, तो डिफ़ॉल्ट वैल्यू को दिखाया जा सकता है. हालांकि, ऐसा करना ज़रूरी नहीं है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\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. |"]]