简单的随机外链图片 api

代码源码 2020-11-04 14

随机图片 api 的用处应该都知道,可用来制作随机背景图片,实现每访问一次,背景图片便自动换一张。

首先,新建 img.txt 文件,内容为图片外链,一行一个,列如下方:

https://cdn.jsdelivr.net/gh/pic-cdn/cdn1@latest/2020/04/29/c7126cc145d2ff68273b2eb429965493.png
https://cdn.jsdelivr.net/gh/pic-cdn/cdn1@latest/2020/04/29/2c7b91e76a66606268d666931c686e59.png
https://cdn.jsdelivr.net/gh/pic-cdn/cdn1@latest/2020/04/29/bee94169707121b69e5adc8f08f9897f.png
https://cdn.jsdelivr.net/gh/pic-cdn/cdn1@latest/2020/04/30/8c20eeaae2e502cfb15d7746ffa4e81d.png
https://cdn.jsdelivr.net/gh/pic-cdn/cdn1@latest/2020/04/30/42f4d80468fa4a43b8d9b747972db2ea.png
https://cdn.jsdelivr.net/gh/pic-cdn/cdn1@latest/2020/04/30/522cd5295e8779887141e5ff2a578d46.png
https://cdn.jsdelivr.net/gh/pic-cdn/cdn1@latest/2020/04/30/50aa7372214daec94aa4c9b6b18c7388.png
全文共 61 字!
本文发布于 2020 年 11 月 04 日 14:49:09

暂无感想