查看: 1430|回复: 0

为什么ie9的swiper失效

[复制链接]

该用户从未签到

1

主题

2

帖子

5

积分

新手上路

Rank: 1

积分
5
发表于 2018-11-2 15:16:51 | 显示全部楼层 |阅读模式
var mySwiper = new Swiper('.swiper-container', {
    direction: 'horizontal',
    loop: true,
    autoplay: {
        delay: 4000,
    },
    pagination: {
        el: '.swiper-pagination',
        paginationType: 'custom',
        clickable: true,
        renderBullet: function (index, className) {
            var text = $(".swiper-slide").eq(index + 1).attr('src');
            var pictype = $(".swiper-slide").eq(index + 1).next('input').val();
            return '<li class="' + className + '"color:#ffc66d;">typeblock(this)"color:#ffc66d;">typenone(this)"><img src="' + text + '"><div class="pictype">' + pictype + '</div></li>';
        },
    },
    navigation: {
        nextEl: '.swiper-button-right',
        prevEl: '.swiper-button-left',

    }
});这个是swiper的初始化代码,ie11可以,ie9就报错
1541142899(1).jpg
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-19 04:54 , Processed in 0.069722 second(s), 31 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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