1、先把前端的展示页面写出来,<img border="0" src="http://localhost:8080/pic/picture.jpg" alt="picture" width="160" height="100">
2、后台的接口执行sql语句,随机畛粳棠奈获取一条记录SELECT * FROM tableNaem ORDER BY rand() LIMIT 1;
3、执行完将记录返回前端,形成图片链接展示在页面上!
时间:2024-10-12 09:27:11
1、先把前端的展示页面写出来,<img border="0" src="http://localhost:8080/pic/picture.jpg" alt="picture" width="160" height="100">
2、后台的接口执行sql语句,随机畛粳棠奈获取一条记录SELECT * FROM tableNaem ORDER BY rand() LIMIT 1;
3、执行完将记录返回前端,形成图片链接展示在页面上!