Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
blockly > Input > getSourceBlock
Dapatkan blok sumber untuk input ini.
Tanda Tangan:
getSourceBlock(): Block;
Hasil:
Blokir
Blok yang menjadi bagian dari input ini.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-24 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-08-24 UTC."],[[["The `Input.getSourceBlock()` method retrieves the parent block associated with a specific input."],["This method returns a `Block` object, representing the block to which the input belongs."]]],["The `Input.getSourceBlock()` method retrieves the source block associated with a given input. It is a method call that returns a `Block` object. This returned `Block` represents the parent block to which the input belongs. Essentially, it provides a way to identify the block that contains a specific input. The method's signature, `getSourceBlock(): Block;`, indicates its function and the type of data it returns.\n"]]