封鎖 >MenuItem >(建構函式)

建構 MenuItem 類別的新例項

Signature:

constructor(content: string | HTMLElement, opt_value?: string | undefined);

參數

參數 類型 說明
內容 字串 |HTMLElement 顯示為項目內容的文字說明文字,或是要顯示的 HTML 元素。
opt_value 字串 |未定義 (選用) 與選單項目相關聯的資料/模型。