blockly > utils > parsing > checkMessageReferences

utils.parsing.checkMessageReferences() 函式

驗證訊息中的任何 %{MSG_KEY} 參照是否參照 Msg 字串表格的鍵。

Signature:

export declare function checkMessageReferences(message: string): boolean;

參數

參數 類型 說明
訊息 字串 可能包含字串表格參照的文字。

傳回:

boolean

如果所有訊息參照都有相符的值,則為「是」。否則傳回 false。