Open evenle opened 8 years ago
一个是手机那个图片旋转的动画,你们写死了Shine_landscapeAni,忘记改成从配置里面读取前缀了。所以如果前缀不是Shine,就没有动画了。
然后就是 window.addEventListener('DOMContentLoaded',function(){ setTimeout(function(){ landscape(); if(_this.option.init){ _this.option.init(); } },50); }); 实在不知道为什么要这么写,直接 setTimeout(function () { landscape(); }, 50); 感觉挺好的。
if (config.mode == 'portrait' || config.mode == "") { config.txt = '为了更好的体验,请将手机/平板竖过来'; } else config.txt = '为了更好的体验,请将手机/平板横过来';
这应该删掉吧,不然调用的时候虽然设置了txt但是没有用的哦!
OK,这个版本有问题。
一个是手机那个图片旋转的动画,你们写死了Shine_landscapeAni,忘记改成从配置里面读取前缀了。所以如果前缀不是Shine,就没有动画了。
然后就是 window.addEventListener('DOMContentLoaded',function(){ setTimeout(function(){ landscape(); if(_this.option.init){ _this.option.init(); } },50); }); 实在不知道为什么要这么写,直接 setTimeout(function () { landscape(); }, 50); 感觉挺好的。