05 2020 档案
摘要:sass/less使用样式穿透的方式 .navBar /deep/ .uni-swiper-dots-horizontal { bottom: 0 !important } stylus的样式穿透 使用>>> .navBar >>> .uni-swiper-dots-horizontal { bot
阅读全文
摘要:<component v-bind:is="currentTabComponent"></component> 动态组件主要是运用 is 属性 达到切换组件的效果。 如何使动态组件保持状态 keep-alive (有时候,我们希望能保持被动态加载组件的状态,已避免反复重复渲染导致的性能问题) <ke
阅读全文
摘要:1. 由于浏览器必须要在执行事件处理函数之后,才能知道有没有掉用过 preventDefault() ,这就导致了浏览器不能及时响应滚动,略有延迟。 所以为了让页面滚动的效果如丝般顺滑,从 chrome56 开始,在 window、document 和 body 上注册的 touchstart 和
阅读全文
摘要:1. 新建vue.config.js 文件 键入 : module.exports = { lintOnSave: false //如果为false,就是取消eslint规则的检查 } 2. 重启后, eslint就关闭了
阅读全文
摘要:remote: Incorrect username or password ( access token ) fatal: Authentication failed for 'https://gitee.com/***/***.git/ 1. 解决办法 清除本地的gitee的账号 git con
阅读全文
摘要:1. ie 浏览器, 去掉蓝框hidefocus="true" 2. google 浏览器, 去掉蓝框onfocus="blur(this)"
阅读全文
摘要:报该错误是config文件中的index.js配置host ... host处 改为localhost 或者本地ip
阅读全文
摘要:layui.use('laydate', function () { var laydate = layui.laydate; $(this).removeAttr("lay-key"); laydate.render({ elem: '#test1', //指定元素 format: 'yyyy-M
阅读全文