Created
March 8, 2019 04:33
-
-
Save LiuQixuan/406c238aa15afc489479c71da8e2fd40 to your computer and use it in GitHub Desktop.
ExamQuestionBankDomAnalysis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| container = document.getElementById('Exam') | |
| for (var i = 1; i <126; ++i) { | |
| tmp_str = container.children[i].getAttribute('name'); | |
| console.log("<br><br>"); | |
| var flag = parseInt(tmp_str.split('x')[1]); | |
| if (flag>115){ | |
| console.log(document.getElementsByClassName('QClick')[i-1].innerText); | |
| console.log('<br>'+document.getElementsByClassName('dis')[i-1].innerText); | |
| }else{ | |
| console.log( document.getElementsByClassName('dis')[i-1].innerHTML); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment