這個(gè)例子從 Github 的 API 中獲取了最新的 Vue.js 提交數(shù)據(jù),并且以列表形式將它們展示了出來。你可以輕松地切換 master 和 dev 分支。
一、展示
二、源碼
Document title
當(dāng)前選定:{{ currentBranch }}
- {{ item.sha.slice(0, 7) }} - {{ item.commit.message }}
創(chuàng)建人: {{ item.commit.author.name }}
創(chuàng)建時(shí)間:{{ item.commit.author.date | formatDate }}