查看: 1677|回复: 1
打印 上一主题 下一主题

paginationFractionRender的函数不执行?

[复制链接]
  • TA的每日心情
    奋斗
    2016-7-4 15:34
  • 签到天数: 6 天

    [LV.2]偶尔看看I

    6

    主题

    17

    帖子

    171

    积分

    注册会员

    Rank: 2

    积分
    171
    跳转到指定楼层
    楼主
    发表于 2016-6-28 16:13:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    <body>
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide" data-hash="slide1">slider1</div>
                <div class="swiper-slide" data-hash="slide2">slider2</div>
                <div class="swiper-slide" data-hash="slide3">slider3</div>
                <div class="swiper-slide" data-hash="slide4">slider4</div>
            </div>
            <div class="swiper-pagination" style="bottom: 50px;"></div>
            <button class="btn">查看当前swiper和第三个slide的progress</button>
        </div>
    </body>
    <script src="js/jquery-1.10.1.min.js"></script>
    <script>
        var mySwiper=new Swiper('.swiper-container',{
            pagination:'.swiper-pagination',
            paginationType:'fraction',
            paginationFractionRender:function(swiper,currentClassName,totalClassName){
                alert("xxx");
                return '<span class="'+currentClassName+'"></span>'+'of'+
                                '<span class="'+totalClassName+'"></span>';
                console.log(currentClassName);
                console.log(totalClassName);
            }
        });
    </script>
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏 分享分享 分享淘帖
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2016-11-27 09:24
  • 签到天数: 4 天

    [LV.2]偶尔看看I

    3

    主题

    20

    帖子

    130

    积分

    注册会员

    Rank: 2

    积分
    130
    沙发
    发表于 2016-6-29 17:27:38 | 只看该作者
    Albuminate - - - - - - -
    Offers offers offers
    Offers offers albuminate - - offers
    At the current stage of offers offers offers water
    Offers offers offers offers offers Emperor
    Offers offers offers offers offers really
    At the current stage of by offers offers offers
    Offers offers L - offers
    At the current stage of offers
    Offers offers offers
    L - - - - - -
    Look, is the great breakthrough of water, the water in the extreme, he even water to level 19!!!!"
    The lofty tower above, a towering figure overlooking the sentient beings, above the one hundred thousand Post Bar.
    "Water is great to do what? Does he want to water to the legendary -- twenty?!!!!" People with panic.
    The emperor saw water shout: "fifteen words high watermark!!!!" Voice did not fall, towering high-rise building projects.
    "No one can stop the water of the emperor, his experience should not need to groove!!!!"
    See also the water of the great smile, suddenly blustery, -- lose one's temper, thousands of landlord suddenly feel spirit is a swing.
    "In honour of!! This is a big honour operation!!!"
    The water was stroked his beard, light drink: "small tail!" Thousands of water all feel One's mind is wandering., upside down.
    Water the great created hydrosphere, water and white water from people who lives happily ever after....
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Swiper中文网 ( 粤ICP备15001020号

    GMT+8, 2024-11-23 04:46 , Processed in 0.058312 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表