रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
ब्लॉकली > नाम > getName
Name.getName() मेथड
ब्लॉकली इकाई के नाम को, कानूनी तौर पर एक्सपोर्ट की जा सकने वाली इकाई के नाम में बदलें.
हस्ताक्षर:
getName(nameOrId: string, type: NameType | string): string;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
nameOrId |
स्ट्रिंग |
Blockly इकाई का नाम (कोई पाबंदी नहीं) या वैरिएबल आईडी. |
टाइप |
नाम प्रकार | स्ट्रिंग |
Blockly में नाम का टाइप ('VARIABLE', 'PROCEDURE', 'Developer_VARIABLE' वगैरह...). |
लौटाए जाने वाले प्रॉडक्ट:
स्ट्रिंग
इकाई का नाम, जो एक्सपोर्ट की गई भाषा में कानूनी तौर पर मान्य हो.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-11 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-09-11 (UTC) को अपडेट किया गया."],[[["The `Names.getName()` method transforms a Blockly entity name or variable ID into a legal, exportable name for use in generated code."],["It takes the original name or ID and its type (e.g., 'VARIABLE', 'PROCEDURE') as input to ensure proper conversion."],["The method returns a string representing the name formatted to be compatible with the target programming language."]]],["The `Names.getName()` method converts a Blockly entity name or variable ID into a legal, exportable entity name. It accepts two parameters: `nameOrId` (the Blockly entity name or ID) and `type` (the name's type, such as 'VARIABLE' or 'PROCEDURE'). The method returns a string, which is the transformed entity name suitable for the target export language.\n"]]