質問編集履歴
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,7 +48,51 @@
|
|
48
48
|
|
49
49
|
```
|
50
50
|
|
51
|
+
```
|
51
52
|
|
53
|
+
#static_pages/top.html
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
document.getElementById("btn").addEventListener('click', () => {
|
58
|
+
|
59
|
+
window.location.href = "/result";
|
60
|
+
|
61
|
+
console.log(gon.voices);
|
62
|
+
|
63
|
+
console.log(gon.voices2);
|
64
|
+
|
65
|
+
$.ajax({
|
66
|
+
|
67
|
+
url: '/static_pages',
|
68
|
+
|
69
|
+
type: 'POST',
|
70
|
+
|
71
|
+
contentType: false,
|
72
|
+
|
73
|
+
processData: false,
|
74
|
+
|
75
|
+
data: formData
|
76
|
+
|
77
|
+
})
|
78
|
+
|
79
|
+
.done(function(response){
|
80
|
+
|
81
|
+
console.log(response);
|
82
|
+
|
83
|
+
})
|
84
|
+
|
85
|
+
.fail(function(data){
|
86
|
+
|
87
|
+
console.log("送信に失敗しました");
|
88
|
+
|
89
|
+
});
|
90
|
+
|
91
|
+
})
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
```
|
52
96
|
|
53
97
|
|
54
98
|
|