回答編集履歴

1

調整

2019/03/05 03:03

投稿

yambejp
yambejp

スコア114814

test CHANGED
@@ -1,8 +1,24 @@
1
1
  for文が好きでない方のために一応別解
2
+
3
+ ※IE polyfill追記しました
2
4
 
3
5
  ```javascript
4
6
 
5
7
  <script>
8
+
9
+ //IE polyfill
10
+
11
+ if(!Array.prototype.fill){
12
+
13
+ Array.prototype.fill=function(v){
14
+
15
+ for(var i=0;i<this.length;i++) this[i]=v;
16
+
17
+ return this;
18
+
19
+ }
20
+
21
+ }
6
22
 
7
23
  window.addEventListener('DOMContentLoaded', function(e){
8
24