上手学了Vue2.0,简单实现了一个分页组件
<div id="pagerWrap">
<pager :total="pageTotal" :current="pageCurrent"></pager>
</div>
<link rel="stylesheet" type="text/css" href="pager.css">
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
<script src="pager.js"></script>