Skip to content

Commit

Permalink
Update exam.js
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaJane08 authored Jun 22, 2018
1 parent cf6d151 commit 268d44a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exam.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class Exam {

let index = 0,
temp = "";
// for (let i = 0; i < this.wrap.childNodes.length; i++) {
for (let i = 0; i < 63; i++) {
for (let i = 0; i < this.wrap.childNodes.length; i++) {
// for (let i = 0; i < 63; i++) {
if (this.wrap.childNodes[i].innerHTML ? this.wrap.childNodes[i].innerHTML.replace(/\s/g, "") : this.wrap.childNodes[i].textContent.replace(/\s/g, "")) {
//html内容
temp += this.wrap.childNodes[i].outerHTML ? this.wrap.childNodes[i].outerHTML : this.wrap.childNodes[i].textContent
Expand Down Expand Up @@ -79,4 +79,4 @@ Array.prototype.shuffle = function () {
arr[i] = itemAtIndex;
}
return arr;
}
}

0 comments on commit 268d44a

Please sign in to comment.