แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > กล่องโต้ตอบ > setAlert
ฟังก์ชันDialog.setAlert()
ตั้งค่าฟังก์ชันที่จะเรียกใช้เมื่อมีการเรียกใช้ Blockly.dialog.alert()
ลายเซ็น:
export declare function setAlert(alertFunction: (p1: string, p2?: () => void) => void): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
alertFunction |
(p1: สตริง, p2?: () =>
เป็นโมฆะ) => เป็นโมฆะ |
ฟังก์ชันที่จะเรียกใช้ |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-22 UTC
[null,null,["อัปเดตล่าสุด 2024-08-22 UTC"],[[["Defines a custom function to be executed when Blockly's alert dialog is triggered."],["Accepts a function as input, which will handle displaying the alert message and any subsequent actions."],["The provided function receives the alert message and an optional callback function as parameters."],["Returns void, indicating that it doesn't produce a direct output."]]],[]]