From c2ccaf16d39dd5a34d731ed634906408a15a5f84 Mon Sep 17 00:00:00 2001 From: istars Date: Sun, 13 Jan 2019 17:41:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/src/main/resources/static/js/myorder.js | 3 ++- demo/src/main/resources/static/myOrders.html | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/demo/src/main/resources/static/js/myorder.js b/demo/src/main/resources/static/js/myorder.js index c93e540..f12e1b6 100644 --- a/demo/src/main/resources/static/js/myorder.js +++ b/demo/src/main/resources/static/js/myorder.js @@ -1,6 +1,6 @@ window.onload(function requestData(){ $.ajax({ - url: "/search", + url: "/orderlist", type: "post", dataType: "json", success: function(data){ @@ -13,6 +13,7 @@ window.onload(function requestData(){ }); }); + //展示数据 function showData(data) { var str = "";//定义用于拼接的字符串 diff --git a/demo/src/main/resources/static/myOrders.html b/demo/src/main/resources/static/myOrders.html index 138130e..cdfe8f1 100644 --- a/demo/src/main/resources/static/myOrders.html +++ b/demo/src/main/resources/static/myOrders.html @@ -8,6 +8,8 @@ + +