通过ajax去请求API相关接口,如下:
$.ajax({ url:"", datatype:"json", method:"post", success:(res) => { // res 就是你返回的数据,用里面的数据进行渲染你前端的列表即可 console.log(res); } })