option-model的接口文档

2018-03-08  本文已影响0人  科研者

Option

构造函数

constructor(content,id,choiceQuestion)

属性

id

content

choiceQuestion

selected

defaultSelected

ChoiceCondition

构造函数

constructor(minSelectCount,maxSelectCount)

属性

minSelectCount

maxSelectCount

requisite

multiselect

ChoiceQuestion

构造函数

constructor(subject,minSelectCount,maxSelectCount,id,options,rightAnswerIds,defaultSelectedIds,scoreValuel,type)

属性

type

id

subject

scoreValuel

score

options

rightAnswerIds

defaultSelectedIds

selectedOptions

selectedOptionIds

方法

testRequisite()

testMinSelectCount()

testMaxSelectCount()

testAllCondition()

testAnswer()

selectOptionOfId(optionID)

selectOptionsOfIdList(idList)

onlySelectOptionsOfIdList(idList)

onlySelectOptionsOutofIdList(idList)

deselectOptionOfId(optionID)

deselectOptionsOfIdList(idList)

deselectAll()

resetSelect()

findIndexForId(optionID)

findOptionForId(optionID)

findIndexListForIdList(idList)

findOptionListForIdList(idList)

deleteOptionForId(optionID)

deleteOptionForIdList(idList)

ChoiceQuestionList

属性

passConditionOfQuestions

passConditionOfQuestionIds

notPassConditionOfQuestions

notPassConditionOfQuestionIds

answerRightQuestions

answerRightQuestionIds

answerWrongQuestions

answerWrongQuestionIds

totalScore

方法

testEveryAccordCondition()

testSomeAccordCondition()

testEveryIsRight()

testSomeIsRight()

deselectAll()

resetSelect()

findIndexForId(questionID)

findQuestionForId(questionID)

findIndexListForIdList(idList)

findQuestionListForIdList(idList)

deleteQuestionForId(questionID)

deleteQuestionForIdList(idList)

上一篇 下一篇

猜你喜欢

热点阅读