上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 'use strict'; exports.__esModule = true; exports.isInContainer = exports.getScrollContainer = exports.isScroll = exports.getStyle = exports.once = exp 阅读全文
posted @ 2021-08-17 17:38 吃饭七分饱 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 发现淘宝h5页面有这个判断处理,拿来复用function parseUA() { var u = navigator.userAgent; var u2 = navigator.userAgent.toLowerCase(); return { //移动终端浏览器版本信息 trident: u.in 阅读全文
posted @ 2021-08-07 11:37 吃饭七分饱 阅读(197) 评论(0) 推荐(0) 编辑
摘要: function broadcast(componentName, eventName, params) { this.$children.forEach(child => { var name = child.$options.componentName; if (name componentNa 阅读全文
posted @ 2021-07-20 12:28 吃饭七分饱 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 添加监听事件,closest方法判断是否在dom内 window.addEventListener('click', function(e) { if(e.target.closest(".country")) { // 点击当前元素处理操作 } else { //点击非当前元素,需要执行的代码 } 阅读全文
posted @ 2021-07-20 11:18 吃饭七分饱 阅读(569) 评论(0) 推荐(0) 编辑
摘要: chrome浏览器中输入框为password类型会提示保存密码和自动填充密码 如何取消呢 input password类型设置autocomplete="new-password" text类型设置autocomplete="new-text" 阅读全文
posted @ 2021-07-09 10:17 吃饭七分饱 阅读(966) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/mashuqi/p/10951551.html 阅读全文
posted @ 2021-07-07 17:56 吃饭七分饱 阅读(256) 评论(0) 推荐(0) 编辑
摘要: vue.config.js文件中配置externals 免费的cdn资源库 http://www.staticfile.org/,测试环境可用,正式环境替换为自己公司的cdn地址 阅读全文
posted @ 2021-07-07 17:52 吃饭七分饱 阅读(336) 评论(0) 推荐(0) 编辑
摘要: import LoadingComponent from '../../components/Async/LoadingComponent.vue' import ErrorComponent from '../../components/Async/ErrorComponent.vue' expo 阅读全文
posted @ 2021-07-06 16:44 吃饭七分饱 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 今日研究币安前端技术,发现币安几乎所有长列表都是采用虚拟滚动的方式,看了一下dom结构 发现采用了绝对定位的方式 原理分析: 1. 子节点高度写死,父级高度则为所有子节点数*子节点高度 2. 子节点采用绝对定位(通过:style动态设置父节点高度和子节点top值) 3.监听滚动判断该渲染哪一部分子节 阅读全文
posted @ 2021-07-05 10:49 吃饭七分饱 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 旧页面beforeDestory执行顺序是在 新页面mounted之前,created之后执行的 所有在beforeDestory执行的某些数据操作如果想在新页面created中生效,则需要改为beforeRouteLeave方法,在数据处理完后调用next()跳转到新页面 页面测试一下之后发现,实 阅读全文
posted @ 2021-07-05 10:07 吃饭七分饱 阅读(1154) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页