【发布时间】:2020-10-06 12:06:12
【问题描述】:
我正在尝试使用 vuejs 创建图库 unspalash API。
我完成了大部分部分,但在分页中堆叠。我看到有一个链接可以提供所有页面信息,但它是字符串格式
<https://api.unsplash.com/photos?order_by=popular&page=1&per_page=4>; rel="first", <https://api.unsplash.com/photos?order_by=popular&page=1&per_page=4>; rel="prev", <https://api.unsplash.com/photos?order_by=popular&page=45021&per_page=4>; rel="last", <https://api.unsplash.com/photos?order_by=popular&page=3&per_page=4>; rel="next"
数据为字符串格式。我如何在 vue 分页中显示它;我不知道。
我需要这个字符串中的 4 个按钮 First、Next、Previous、Last。
提前致谢。
【问题讨论】:
-
有谁想帮忙?