Jquery放大镜插件[JMagazine]使用参数简介

接口介绍
 JMag()
      MagJson:JMagazine杂志配置文件 [Obj]  <具有一个格式的json对象,具体我在后面说> 
      LeftPage:杂志左页 [Selector] 
      RightPage:杂志右页 [Selector]
      ViewPage:杂志放大页 [Selector]
      Recommended:杂志推荐信息 [Selector] 
      StarPageNum:杂志起始页书 [Int]   
      PageCount:杂志总共页数 [Int]  
      PageWidth:杂志宽度 [Int,String 
      PageHeight:杂志高度 [Int,String]
      DefaultPageSpeed:默认翻页动画速度 [Int]
      BeforeLoad:加载前动作 [Function]
      AfterLoad:加载后动作 [Function] 
      PageEvent:自定义翻页动画 [Function]
      PageFirst:翻到第一页的动作 [Function]
      PageLast:翻到第一页的动作 [Function]
      PageError:翻页错误动作 [FunctionPageError的优先级比 PageFirst及PageLast低,如果执行了PageLast或PageFirst就不会执行 PageError
 
StopAuto()   停止自动翻页
Zoom()     放大ViewPage的图片,defaultvalue:2
AutoPlay()    开始自动翻页
PageGo()   翻一页如果后翻缓存一个data('style','PageGo');如果前翻就缓存一个.data('style','PageBack');再执行PageGo()
getPageIMG()    获取杂志左右页面的图片src  左页 getPageIMG() .left    右页getPageIMG()  .right
getPageNum()    获取杂志当前页数,从0开始计数
getTotalNum()    获取杂志总共页数
getMagConfig()  获取杂志配置文件
jumpTo()     跳转到N页,N为杂志左页的页码

插件下载:https://files.cnblogs.com/ariesjia/JMagazine.js

原文地址:https://www.cnblogs.com/only_J/p/1657472.html