แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > ทั่วไป > getMainWorkspace
ฟังก์ชัน Common.getMainWorkspace()
แสดงพื้นที่ทำงานระดับบนสุดที่ใช้ล่าสุด (อิงตามโฟกัส) พยายามอย่าใช้ฟังก์ชันนี้ โดยเฉพาะอย่างยิ่งหากมีอินสแตนซ์ Blockly หลายรายการในหน้าหนึ่ง
ลายเซ็น:
export declare function getMainWorkspace(): Workspace;
การคืนสินค้า:
พื้นที่ทำงาน
พื้นที่ทำงานหลัก
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-29 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-08-29 UTC"],[[["`getMainWorkspace()` returns the last focused top-level Blockly workspace."],["It's recommended to avoid this function, especially with multiple Blockly instances on a page."],["The function returns a `Workspace` object representing the main workspace."]]],["The `getMainWorkspace()` function retrieves the most recently used top-level workspace, determined by focus. It returns a `Workspace` object representing the main workspace. Its use is discouraged, especially on pages with multiple Blockly instances, and is meant to get the main workspace. The function's signature and return type are also provided.\n"]]