摘要: 根据不同分辨率调用不同css ( ①根据屏幕尺寸:window.screen.width >= 1680。。。) ②媒体查询 分别引用:<link rel="stylesheet" media="screen and (max-device-width:1280px)" href="test-01. 阅读全文
posted @ 2022-02-17 13:44 如意酱 阅读(420) 评论(0) 推荐(0)
摘要: 切换拉取分支: git branch (查看本地分支):查看 git branch -a (查看本地+远程所有分支):查看 git checkout -b dev(自己取的名) origin/develop(要拉取的远程分支全名) :新建并拉取 git checkout master:切换到主干 代 阅读全文
posted @ 2022-02-17 13:18 如意酱 阅读(25) 评论(0) 推荐(0)
摘要: 1. 确保removeEventListener方法的第二个参数 listener,即需要从目标事件移除的 EventListener 函数与addEventListener方法中的参数一致。 注意:如果是用function声明,并且函数体中访问了 this,需要用.bind() 方法绑定到 thi 阅读全文
posted @ 2022-02-17 13:14 如意酱 阅读(3793) 评论(0) 推荐(1)
摘要: CSS 滤镜 : backdrop-filter:https://www.jb51.net/css/745019.html 处理图像效果的CSS属性: https://www.w3cplus.com/css3/image-effects-with-css.html 毛玻璃效果:https://www 阅读全文
posted @ 2022-02-17 13:12 如意酱 阅读(48) 评论(0) 推荐(0)
摘要: var validatorPhone = function (rule, value, callback) { if (value "") { callback(new Error("请输入手机号")); } else if (!/^1\d{10}$/.test(value)) { callback 阅读全文
posted @ 2022-02-17 13:05 如意酱 阅读(154) 评论(0) 推荐(0)
摘要: 更多方法参考:http://t.zoukankan.com/gaoht-p-14518823.html //方法一: .wrap{ width: 100%; } .item{ margin-right: 20px; margin-bottom: 20px; width: calc((100% - 2 阅读全文
posted @ 2022-02-17 13:03 如意酱 阅读(558) 评论(0) 推荐(0)
摘要: onFocus() { let input = document.getElementById("input"); input.scrollIntoView(); }, 阅读全文
posted @ 2022-02-17 13:01 如意酱 阅读(138) 评论(0) 推荐(0)
摘要: .greencircle:before{ content: ''; margin: 3px; display: table; width: 6px; height: 6px; background: #2090ff; border-radius: 50%; } 或者直接加一个 • (简单总是最重要的 阅读全文
posted @ 2022-02-17 12:59 如意酱 阅读(1327) 评论(0) 推荐(0)
摘要: 日后再做进一步优化: this.learnStyleListAll = [...res.data.data]; 阅读全文
posted @ 2022-02-17 12:58 如意酱 阅读(21) 评论(0) 推荐(0)
摘要: a. vertical-align:top; 消除垂直间隙 b. 父亲设置font-size: 0; c. 子元素各设置字体大小 阅读全文
posted @ 2022-02-17 12:57 如意酱 阅读(32) 评论(0) 推荐(0)
摘要: 个人见解: 闭包的实质是因为函数嵌套而形成的作用域链 闭包的定义即:函数 A 内部有一个函数 B,函数 B 可以访问到函数 A 中的变量,那么函数 B 就是闭包 简化版:一个函数想要访问外部变量,那这就是闭包。 阅读全文
posted @ 2022-02-17 12:55 如意酱 阅读(83) 评论(0) 推荐(0)
摘要: 在dom中: <img v-for="(val, i) in 10" :key="i" :src="require('@/assets/img/screen/num-' + i + '.png')" /> 在data中引用图片: videoPictureUrl: require('@/assets/ 阅读全文
posted @ 2022-02-17 12:54 如意酱 阅读(129) 评论(0) 推荐(0)
摘要: export default xxximport xxx from './' export xxximport {xxx} from './' export default function(){ } import xxx from './' 阅读全文
posted @ 2022-02-17 12:54 如意酱 阅读(27) 评论(0) 推荐(0)
摘要: <div class="product_item" v-for="(item, index) in productList" :key="index" @mouseover="mouseOver(index)" @mouseleave="mouseLeave"> <img class="produc 阅读全文
posted @ 2022-02-17 12:52 如意酱 阅读(43) 评论(0) 推荐(0)
摘要: ① >>>( 如果是css可以,scss等预处理器无法解析) .a >>> .b { /* ... */} ② /deep/ (版本不能太新否则报错): 解决方法:npm uninstall sass-loader npm install sass-loader@7.0.0 npm install 阅读全文
posted @ 2022-02-17 12:51 如意酱 阅读(82) 评论(0) 推荐(0)