回答編集履歴

3

修正

2016/11/16 05:06

投稿

hiim
hiim

スコア1689

test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- onsubmit = function(arg)
9
+ `onsubmit = function(arg)`
10
10
 
11
11
  の場合第一引数にはeventオブジェクトが渡されます、したがって、
12
12
 

2

ついか

2016/11/16 05:06

投稿

hiim
hiim

スコア1689

test CHANGED
@@ -3,3 +3,17 @@
3
3
 
4
4
 
5
5
  `document.getElementById('demo').onsubmit = function()`
6
+
7
+
8
+
9
+ `onsubmit = function(arg)`
10
+
11
+ の場合第一引数にはeventオブジェクトが渡されます、したがって、
12
+
13
+
14
+
15
+ `document.getElementById('demo').onsubmit = function(check) `
16
+
17
+ 書くと上で宣言したcheckではなくcheckの中身はeventオブジェクトになるからです。
18
+
19
+

1

ツイ

2016/11/16 05:04

投稿

hiim
hiim

スコア1689

test CHANGED
File without changes