复制代码代码如下所示:
开关(objnametype){

case'pd:

valueud = obj.id;

ID =你;

无功loadvud = userdata.load(考试,ID);

如果(loadvud = = null loadvud =定义的| | | | { loadvud = =)

无功tmptgid = obj.id.substr(0,obj.id.indexof('_ '));

qnototald { qidnostr { tmptgid } } + +;

}

打破;

case'danx:

valueud = obj.id;

你obj.name var =;

无功objnametop = objname.substr(0,objname.indexof('_ '));

ID =你;

无功loadvud = userdata.load(考试,ID);

如果(loadvud = = null loadvud =定义的| | | | { loadvud = =)

无功tmptgid = obj.id.substr(0,obj.id.indexof('_ '));

qnototald { qidnostr { tmptgid } } + +;

}

打破;

case'pp:

valueud = obj.id;

你obj.name var =;

无功objnametop = objname.substr(0,objname.indexof('_ '));

ID =你;

无功loadvud = userdata.load(考试,ID);

如果(loadvud = = null loadvud =定义的| | | | { loadvud = =)

无功tmptgid = obj.id.substr(0,obj.id.indexof('_ '));

qnototald { qidnostr { tmptgid } } + +;

}

打破;

case'text:

valueud = obj.value;

id=text_ + obj.id;

无功loadvud = userdata.load(考试,ID);

如果(loadvud = = null){

如果(valueud = = = ={零valueud | |)

返回;

}

别的{

无功tmptgid = obj.id.substr(0,obj.id.indexof('_ '));

qnototald { qidnostr { tmptgid } } + +;

}

}

别的{

如果(valueud = = = ={零valueud | |)

UserData.remove(考试,ID);

examanswerkeystr = removestrwithcomma(examanswerkeystr,ID);

UserData.save(examinfo examanswerkeystr ,

无功tmptgid = obj.id.substr(0,obj.id.indexof('_ '));

qnototald { } { }——qidnostr tmptgid;

返回;

}

}

打破;

case'checkbox:

ID = checkbox_ + obj.id.substr(0,obj.id.lastindexof('_ '));

VAR键= obj.id.substr(0,obj.id.lastindexof('_ '));

关键=checkbox_ +键;

valueud = userdata.load(考试重点);

VaR obj.checked旗=;

如果(valueud = = null){

如果(标志){

id =键;

valueud = obj.id;

无功tmptgid = obj.id.substr(0,obj.id.indexof('_ '));

qnototald { qidnostr { tmptgid } } + +;

}

}

别的{

如果(标志){

如果(valueud.indexof(obj。ID)= = 1){

valueud =+对象ID

}

}

别的{

如果(valueud.indexof(obj。ID)!= 1){

如果(valueud.indexof(',' +对象ID)!= 1){

valueud = valueud.replace(',' + obj.id,);

}

其他的

如果(valueud.indexof(obj.id + ',')!= 1){

valueud = valueud.replace(obj.id + ',',');

}

别的{

UserData.remove(考试重点);

examanswerkeystr = removestrwithcomma(examanswerkeystr,关键);

UserData.save(examinfo examanswerkeystr ,

无功tmptgid = obj.id.substr(0,obj.id.indexof('_ '));

qnototald { } { }——qidnostr tmptgid;

返回;

}

}

}

}

打破;

case'textarea:

valueud = obj.value;

id=textarea_ + obj.id;

无功loadvud = userdata.load(考试,ID);

如果(loadvud = = null){

如果(valueud = = = ={零valueud | |)

返回;

}

别的{

无功tmptgid = obj.id.substr(0,obj.id.indexof('_ '));

qnototald { qidnostr { tmptgid } } + +;

}

}

别的{

如果(valueud = = = ={零valueud | |)

UserData.remove(考试,ID);

examanswerkeystr = removestrwithcomma(examanswerkeystr,ID);

UserData.save(examinfo examanswerkeystr ,

无功tmptgid = obj.id.substr(0,obj.id.indexof('_ '));

qnototald { } { }——qidnostr tmptgid;

返回;

}

}

打破;

违约:

回报;}