From 36c641dd71230bf40b3af0086e92f97e1e9c7375 Mon Sep 17 00:00:00 2001 From: LCJ-MinYa <1049468118@qq.com> Date: Wed, 14 Jan 2026 16:16:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8B=96=E6=8B=BD=E5=B8=83=E5=B1=80-?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demoHtml/flex/js/list.js | 20 ++++++++++ demoHtml/flex/模板接口.html | 65 +++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 demoHtml/flex/模板接口.html diff --git a/demoHtml/flex/js/list.js b/demoHtml/flex/js/list.js index 79f08af..de0e56a 100644 --- a/demoHtml/flex/js/list.js +++ b/demoHtml/flex/js/list.js @@ -1,4 +1,22 @@ (function () { + // 获取模版列表 + var getTemplateList = function () { + // 获取JSON数据 + $.ajax({ + url: 'http://www.dtviptvott.com:20018/template/list', + type: 'GET', + dataType: 'json', + success: function (response) { + console.log('请求成功:', response); + // 处理响应数据 + $('#result').html(JSON.stringify(response, null, 2)); + }, + error: function (xhr, status, error) { + console.log('请求失败:', error); + }, + }); + }; + $(function () { $.getJSON('data.json', function (data) { var listPanel = $('#list-panel'); @@ -56,5 +74,7 @@ console.log('应用'); }); }); + + getTemplateList(); }); })(); diff --git a/demoHtml/flex/模板接口.html b/demoHtml/flex/模板接口.html new file mode 100644 index 0000000..35ee74b --- /dev/null +++ b/demoHtml/flex/模板接口.html @@ -0,0 +1,65 @@ + + + + + + Apifox 接口文档 + + + + + + +
+ + + + +