From 353fcb7365c59fe77aed238889945b337d113a41 Mon Sep 17 00:00:00 2001 From: pwkev4itb <2715593964@qq.com> Date: Fri, 3 Sep 2021 10:02:13 +0800 Subject: [PATCH] ADD file via upload --- static/js/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 static/js/index.js diff --git a/static/js/index.js b/static/js/index.js new file mode 100644 index 0000000..3ea9de4 --- /dev/null +++ b/static/js/index.js @@ -0,0 +1,11 @@ +function begin(){ + var xhr = new XMLHttpRequest(); + xhr.open('get','/begin?begin=1'); + xhr.onload = function (){ + var response = xhr.responseText; + console.log(response); + var json_data = eval('('+response+')'); + console.log(json_data); + } + xhr.send(null); +}