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 @@ + + + +
+ +