質問編集履歴
2
内容の変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,4 +10,11 @@
|
|
10
10
|
text:''
|
11
11
|
}
|
12
12
|
})
|
13
|
+
```
|
14
|
+
|
15
|
+
```Python
|
16
|
+
@app.route("/text",methods=["POST"])
|
17
|
+
def text():
|
18
|
+
text=request.form['text']
|
19
|
+
return render_template("text.html",text=text)
|
13
20
|
```
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
タイトル通りです.
|
2
2
|
POSTされたデータをvueのデータに格納するにはどのようにすればよいのでしょうか?
|
3
3
|
POSTされるJSONは{"text":"hogehoge"}としています.
|
4
|
+
webサーバはPythonのFlaskを利用しています.
|
4
5
|
|
5
6
|
```vue
|
6
7
|
new Vue({
|