2018年10月18日

问题:Swiper父容器隐藏时实例化组件,组件滑动失效

摘要: 解决办法:初始化组件时,配置 observe true、observeParents true。 observe参数 启动动态检查器(OB/观众/观看者),当改变swiper的样式(例如隐藏/显示)或者修改swiper的子元素时,自动初始化swiper。 observeParents参数 将obse 阅读全文

posted @ 2018-10-18 15:54 鲲跃北溟 阅读(1053) 评论(0) 推荐(0) 编辑

图片预加载

摘要: 先绑定Image onload事件,然后再给src赋值。这样load事件会正常触发。 阅读全文

posted @ 2018-10-18 14:42 鲲跃北溟 阅读(105) 评论(0) 推荐(0) 编辑

前端资源库CDN加速

摘要: 国内 七牛 http://staticfile.org/ 国外 cdnjs https://cdnjs.com/ 阅读全文

posted @ 2018-10-18 11:55 鲲跃北溟 阅读(119) 评论(0) 推荐(0) 编辑

bower 安装依赖提示 EINVRES Request to https://bower.herokuapp.com/packages/xxx failed with 502

摘要: 出错提示EINVRES Request to https://bower.herokuapp.com/packages/chai failed with 502 访问 https://bower.herokuapp.com/ 页面提示This Bower version is deprecated. 阅读全文

posted @ 2018-10-18 11:05 鲲跃北溟 阅读(1245) 评论(0) 推荐(0) 编辑

导航