
code:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <!-- import CSS -->
- <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
- </head>
- <body>
- <div id="app">
- <div class="block">
- <span class="demonstration">页数较少时的效果</span>
- <el-pagination layout="prev, pager, next"
- :total="100"
- @@current-change="handlerPage">
- </el-pagination>
- </div>
- </div>
- </body>
- </html>
-
- <!-- import Vue before Element -->
- <script src="https://unpkg.com/vue/dist/vue.js"></script>
- <!-- import JavaScript -->
- <script src="https://unpkg.com/element-ui/lib/index.js"></script>
- <script>
- new Vue({
- el: '#app',
- methods: {
- handlerPage: function (val) {
- this.$message({
- message: '点击分页分' + val,
- type: 'success'
- });
- }
- },
- data: function () {
- return { visible: false }
- }
- })
- </script>
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739。有需要软件开发,或者学习软件技术的朋友可以和我联系~(Q:815170684)
评价
排名
8
文章
224
粉丝
7
评论
7
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术