回答編集履歴

1

chousei

2019/05/31 03:27

投稿

yambejp
yambejp

スコア115010

test CHANGED
@@ -22,13 +22,9 @@
22
22
 
23
23
  var obj={};
24
24
 
25
- if(typeof selector=="object"){
25
+ if(typeof selector=="object" && selector instanceof HTMLElement){
26
26
 
27
- if(selector instanceof HTMLElement){
28
-
29
- arr=[selector];
27
+ arr=[selector];
30
-
31
- };
32
28
 
33
29
  }else{
34
30