你对多选题进行判分的时候是不是错一个就全错?如果是的话,那就整体比较好了,比如标准答案是ACD,你只要把提交上来的答案去掉中间的逗号就可以了,只要不一样就不正确啊
不过好象VBSCRIPT里没有比较字符串的函数,可以这样:
if len(str1)=len(str2) and instr(str1,str2)=1 then
sngScore=sngTotalScore
else
sngScore=0
end if
score=50
j=0
answer=replace(request("aa")," ","")
result=request("result")
u=split(answer,",")
v=split(result,",")
if ubound(u)=ubound(v) then
for i=0 to ubound(u)
if instr(result,u(i))>0 then
j=j+1
end if
next
end if
if j=ubound(v)+1 then
score=score+4
end if