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