当前位置: 首页 > 工具软件 > TouchSlide > 使用案例 >

TouchSlide.js的使用

阴波峻
2023-12-01

TouchSlide可以说是SuperSlide手机简化版,不同的地方在于:

  1.TouchSlide是纯JavaScript开发的,不依赖任何js库,鉴于此,TouchSlide调用方法和SuperSlide有点不同。

  调用方法为:TouchSlide({slideCell:"#slider",effect:"leftLoop"});(slideCell必须为id对象);同样效果,SuperSlide调用方法为:jQuery("#slider").slide({ effect:"leftLoop" });

  2、为了方便使用,我用js模拟了简单的jQuery选择器,只支持“#”“.”“标签名称”,用空格隔开。除了slideCell必须用id选择器外,其它titCell等都可以使用,例如:titCell:".title li"

转载于:https://www.cnblogs.com/jxm321/p/6762629.html

 类似资料: