From a74518ee1122ddfa0e4552213e37fe6aae04fcc1 Mon Sep 17 00:00:00 2001 From: iotcat Date: Sun, 12 Jan 2020 13:08:56 +0000 Subject: [PATCH] print name --- index.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/index.html b/index.html index c8fef69..30c0417 100644 --- a/index.html +++ b/index.html @@ -11,8 +11,13 @@

+

+ 名称: 未知 +


+
+
@@ -109,6 +114,15 @@ }, 2000); }); } + var getInfo = function(){ + $.post('https://acg.watch/api/getInfo.php?url='+options.video.quality[0].url, function(res){ + res = JSON.parse(res); + printInfo(res); + }); + } + var printInfo = function(res){ + $('#video_name').html(res.name); + }