摘要: 1、Compress.php(该文件放在vendor文件夹中) 1 <?php 2 class Compress 3 { 4 private $src; 5 private $image; 6 private $imageinfo; 7 private $percent=0.5; 8 9 /* 10 阅读全文
posted @ 2020-09-27 10:06 糖糖Y 阅读(953) 评论(0) 推荐(0) 编辑
摘要: 原因是因为Swiper提前初始化了,然而数据还没有加载完成。解决方法如下: 1、在Swiper初始化时 swiper0 = new Swiper('.w0', { initialSlide :0, observer:true,//修改swiper自己或子元素时,自动初始化swiper observe 阅读全文
posted @ 2020-09-27 09:56 糖糖Y 阅读(748) 评论(0) 推荐(0) 编辑