แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > Events > VarRename > (constructor)
Events.VarRename.(constructor)
สร้างอินสแตนซ์ใหม่ของคลาส VarRename
ลายเซ็น:
constructor(opt_variable?: IVariableModel<IVariableState>, newName?: string);
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
opt_variable |
IVariableModel<IVariableState> |
(ไม่บังคับ) ตัวแปรที่เปลี่ยนชื่อ ไม่มีการกําหนดค่าสําหรับเหตุการณ์ว่าง |
newName |
สตริง |
(ไม่บังคับ) ชื่อใหม่ที่จะเปลี่ยนให้ตัวแปร |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-05-16 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"]],["อัปเดตล่าสุด 2025-05-16 UTC"],[[["The `Events.VarRename` class constructor creates a new instance of the `VarRename` class, signifying a variable rename event within Blockly applications."],["This constructor optionally accepts the `VariableModel` object of the renamed variable and the variable's new name as parameters."],["These parameters, `opt_variable` and `newName`, help in defining the specifics of the variable rename event."]]],["The `VarRename` class constructor creates a new instance for renaming a variable. It accepts two optional parameters: `opt_variable`, a `VariableModel` representing the variable being renamed, and `newName`, a string specifying the variable's new name. If `opt_variable` is undefined, it indicates a blank event. The class facilitates the process of tracking and applying variable name changes within the system.\n"]]