MCPcopy Create free account
hub / github.com/Xu22Web/tech-study-js / handleMutiplyChoiceRand

Function handleMutiplyChoiceRand

tech-study.js:2976–2988  ·  view source on GitHub ↗

* @description 随机处理多选

()

Source from the content-addressed store, hash-verified

2974 * @description 随机处理多选
2975 */
2976function handleMutiplyChoiceRand() {
2977 // 选项按钮
2978 const allBtns = $$('.q-answer');
2979 // 按钮存在
2980 if (allBtns.length) {
2981 allBtns.forEach((allBtn) => {
2982 // 选择
2983 if (!allBtn.classList.contains('chosen')) {
2984 allBtn.click();
2985 }
2986 });
2987 }
2988}
2989/**
2990 * @description 处理填空
2991 */

Callers 1

doingExamFunction · 0.70

Calls 1

$$Function · 0.70

Tested by

no test coverage detected