From 9d84a2a93f5b0f2b5de7a4b59dff81fc7770cd34 Mon Sep 17 00:00:00 2001 From: istars Date: Wed, 16 Jan 2019 14:10:54 +0800 Subject: [PATCH] =?UTF-8?q?myOder.html=E6=98=BE=E7=A4=BA=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8D=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/src/main/resources/static/myOrders.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/demo/src/main/resources/static/myOrders.html b/demo/src/main/resources/static/myOrders.html index 40976cc..4df2286 100644 --- a/demo/src/main/resources/static/myOrders.html +++ b/demo/src/main/resources/static/myOrders.html @@ -53,6 +53,21 @@ } } + $(function(){ + $.ajax({ + url: "/info", + type: "post", + dataType: "json", + success: function(data){ + $("#username").empty(); + $("#username").html(data.userName); + }, + error: function(msg){ + alert("ajax连接异常:"+msg); + } + }); + }); + @@ -127,7 +142,7 @@
-

用户 XXX

+

XXX