Peter Pan
Peter Pan
手机设备上的确有不小的概率出现这个问题,请作者关注下。
反复测试了一下,这边的版本是 Mobilebone.VERSION = '2.5.7'; 测试的机器是 iPhone6和Smartisan T1, 发现只要是基本切换就有很大的几率(大概10次里超过3次)出现没有转场动画的情况,而Ajax的请求切换没有发现这个问题,两台机器均是相同表现。 而在Mobilebone内部,无论基本切换还是Ajax切换,应该都是同一调用的 Mobilebone.transition 方法,于是想象了下基本切换与Ajax切换两者在DOM属性上可能的区别,唯一能想到就是基本切换的时候,第一个参数 pageInto这个DOM的display属性是none; 而Ajax切换直接取出的内容的时候,这里的display没有 none 的属性。 于是进行了如下更改: 找到 Mobilebone.transition 这个方法,在第一行代码 if (arguments.length == 0 || pageInto == pageOut) return; 这段代码之后加入: pageInto.className...
看这里 --- Mobilebone+IScroll+Zepto+FastClick 的推荐配置方案 https://github.com/zhangxinxu/mobilebone/issues/150
thanks for your issue, index.js don't need more configuration, after you installed a webserver just like Nginx or Apache, and perform `node index.js` in the command line, `http://localhost:3000` could be...