事件回调函数onslidechanged,在火狐浏览器以及移动设备上无效,只是在chrome浏览器(PC 版本 46.0.2490.86 m)测试有效
Event Callback--onslidechanged,it does not work in firefox(vresion 43.0.4) and mobile devices and only work in chrome(PC version 46.0.2490.86 m)
代码示例:
var islider = new iSlider({
type: 'pic',
data: list,
dom: document.getElementById("wrapper"),
isVertical: true,
isLooping: true,
animateType: 'card',
onslidechange: function(idx) {
if (this.isLooping === false) {
if (idx === this.data.length - 1) {
document.getElementById('iSlider-arrow').style.display = 'none';
}
else {
document.getElementById('iSlider-arrow').style.display = 'block';
}
}
},
onslidechanged:function(idx){
console.log("changed"+idx);//此回调函数在火狐(版本号43.0.4)以及移动设备下无效
}
});
事件回调函数onslidechanged,在火狐浏览器以及移动设备上无效,只是在chrome浏览器(PC 版本 46.0.2490.86 m)测试有效 Event Callback--onslidechanged,it does not work in firefox(vresion 43.0.4) and mobile devices and only work in chrome(PC version 46.0.2490.86 m) 代码示例: var islider = new iSlider({ type: 'pic', data: list, dom: document.getElementById("wrapper"), isVertical: true, isLooping: true, animateType: 'card', onslidechange: function(idx) { if (this.isLooping === false) { if (idx === this.data.length - 1) { document.getElementById('iSlider-arrow').style.display = 'none'; } else { document.getElementById('iSlider-arrow').style.display = 'block'; } } }, onslidechanged:function(idx){ console.log("changed"+idx);//此回调函数在火狐(版本号43.0.4)以及移动设备下无效 } });