質問編集履歴
1
更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -78,15 +78,15 @@
|
|
78
78
|
|
79
79
|
const members = document.querySelectorAll('.members');
|
80
80
|
|
81
|
-
for(
|
81
|
+
for(const member of members) {) {
|
82
82
|
|
83
|
-
if (member
|
83
|
+
if (member.getAttribute('style') == 'display:block;') {
|
84
84
|
|
85
|
-
member
|
85
|
+
member.removeAttribute('style','display:block;')
|
86
86
|
|
87
87
|
} else {
|
88
88
|
|
89
|
-
member
|
89
|
+
member.setAttribute('style','display:block;')
|
90
90
|
|
91
91
|
}
|
92
92
|
|