提交 2e344daa 编写于 作者: C codfrm

修复作业填充答案bug

上级 484c0bf0
......@@ -145,7 +145,11 @@ module.exports = {
$(options).removeAttr('checked');
let optionContent = $('.Cy_ulTop.w-top li div');
if (optionContent.length <= 0) {
optionContent = $(options).parents('li').find('a');
optionContent=[];
for(let i=0;i<options.length;i++){
optionContent.push($(options[i]).parents('li').find('a')[0]);
}
// optionContent = $(options).parents('li').find('a'); //顺序不知道为什么反了
}
for (let i = 0; i < correct.length; i++) {
for (let n = 0; n < options.length; n++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册