返回顶部
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页
摘要: 参考:https://www.it1352.com/200163.html https://blog.csdn.net/Sourcecode_poet/article/details/53509856?depth_1-utm_source=distribute.pc_relevant.none-ta 阅读全文
posted @ 2020-03-13 16:38 前端-xyq 阅读(559) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/cl11992/article/details/85629142 https://blog.csdn.net/leijia_xing/article/details/62422108?depth_1-utm_source=distribute.pc_ 阅读全文
posted @ 2020-03-10 17:06 前端-xyq 阅读(3737) 评论(0) 推荐(1)
摘要: 效果: index.html: <link href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.css" rel="stylesheet"> <script src="https://cdn.bootcss.com/Swiper/3.4.2/j 阅读全文
posted @ 2020-03-09 17:50 前端-xyq 阅读(3174) 评论(0) 推荐(0)
摘要: 搬运自:https://www.cnblogs.com/yky-iris/p/9251230.html?utm_source=debugrun&utm_medium=referral 视图不更新问题及原因: 在原生js或者第三方框架下,修改model,是有可能不会触发视图更新的,比如setTimeo 阅读全文
posted @ 2020-01-21 12:01 前端-xyq 阅读(3832) 评论(0) 推荐(0)
摘要: 参考:http://www.pianshen.com/article/6692170109/ 我的需求:列表页进详情页,在列表页加载完成时,注册详情页。这样首次进入详情页时就会更快(因为提前引入了详情页的js),同时也不会影响进入列表页时的速度。 列表页js: mounted() { **** // 阅读全文
posted @ 2020-01-21 11:38 前端-xyq 阅读(1017) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/u012528184/article/details/41694155 https://www.cnblogs.com/lilirufeng/p/6045969.html 注:我用的是vue,一般js同理。 页面: <div @click="getA 阅读全文
posted @ 2020-01-20 18:20 前端-xyq 阅读(453) 评论(0) 推荐(0)
摘要: 搬运自:https://segmentfault.com/a/1190000019610283?utm_source=tag-newest vue官方API: https://cn.vuejs.org/v2/api/#keep-alive 例: router.js: { path: '/home', 阅读全文
posted @ 2020-01-19 17:22 前端-xyq 阅读(10980) 评论(0) 推荐(1)
摘要: 参考:https://segmentfault.com/q/1010000010829474 问题:列表页进详情页,第一次很慢,第二次就很快。 原因:我原本是使用组件懒加载,每次第一次切换路由的时候,都要去加载相应的组件的js文件,需要等文件加载完之后,路由才能切换过去。后面切换的话js都下载过了, 阅读全文
posted @ 2020-01-19 11:31 前端-xyq 阅读(1148) 评论(0) 推荐(0)
摘要: 参考:https://www.jianshu.com/p/40da0ba35ac1 1. 安装 npm install babel-plugin-component –D 2. 修改.babelrc 原babelrc: { "presets": [ ["env", { "modules": fals 阅读全文
posted @ 2020-01-14 10:47 前端-xyq 阅读(2074) 评论(0) 推荐(0)
摘要: 参考:https://www.jianshu.com/p/48ecd9ba8d74 页面: <div @scroll="checkLazyLoad" ref="home" v-for="item in list"> <div class="gimg"> <img v-if="item.isLoadS 阅读全文
posted @ 2020-01-13 17:52 前端-xyq 阅读(529) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页