質問編集履歴

2

内容の変更

2020/02/07 04:13

投稿

mermer
mermer

スコア16

test CHANGED
File without changes
test CHANGED
@@ -23,3 +23,17 @@
23
23
  })
24
24
 
25
25
  ```
26
+
27
+
28
+
29
+ ```Python
30
+
31
+ @app.route("/text",methods=["POST"])
32
+
33
+ def text():
34
+
35
+ text=request.form['text']
36
+
37
+ return render_template("text.html",text=text)
38
+
39
+ ```

1

追記

2020/02/07 04:13

投稿

mermer
mermer

スコア16

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,8 @@
3
3
  POSTされたデータをvueのデータに格納するにはどのようにすればよいのでしょうか?
4
4
 
5
5
  POSTされるJSONは{"text":"hogehoge"}としています.
6
+
7
+ webサーバはPythonのFlaskを利用しています.
6
8
 
7
9
 
8
10