文件導航

函式:score()

function score<T>(instructions, criteria): ScoreQuestion<T>;

用有序量規建立一個 score 問題。

型別參數

T

T 繼承 ScoreCriteria

參數

instructions

EntryType

問題本身,可以是文本、JSON 物件或陣列,也可以為 null。

criteria

T

至少兩條描述,按 score 從零開始索引;每一項都可以是 null。

回傳值

ScoreQuestion<T>