dialog.alert() 函式
傳送至 window.alert() 的包裝函式,供應用程式開發人員透過 setAlert 覆寫,以提供強制回應瀏覽器視窗的替代方案。
Signature:
export declare function alert(message: string, opt_callback?: () => void): void;
參數
參數 | 類型 | 說明 |
---|---|---|
訊息 | 字串 | 向使用者顯示的訊息。 |
opt_callback | () => void | (選用) 快訊關閉時的回呼。 |
傳回:
void