摘要: 1、安装node-sas和sass-loadercnpm install node-sass@4.14.1 cnpm install sass-loader@8.0.0 阅读全文
posted @ 2022-11-17 09:45 新新新新新手 阅读(15) 评论(0) 推荐(0)
摘要: 、判断是否存在某个值 1、Array.prototype.indexOf() indexOf()方法返回在数组中可以找到一个给定元素的第一个索引,如果不存在,则返回-1。 const beasts = ['ant', 'bison', 'camel', 'duck', 'bison']; conso 阅读全文
posted @ 2022-08-17 16:38 新新新新新手 阅读(2107) 评论(0) 推荐(0)
摘要: 使用CMD命令,用管理员打开,在该目录下执行该命令 安装更新组件:npm i -g npm-check-updates 更新:ncu -u 阅读全文
posted @ 2022-08-03 10:44 新新新新新手 阅读(1303) 评论(0) 推荐(0)
摘要: props: { str: { type: String, default: "" }, num: { type: Number, default: null }, boo: { type: Boolean, default: true }, arr: { type: Array, default( 阅读全文
posted @ 2022-07-11 17:29 新新新新新手 阅读(385) 评论(0) 推荐(0)
摘要: http://caibaojian.com/vw-vh.html 阅读全文
posted @ 2021-03-25 18:00 新新新新新手 阅读(16) 评论(0) 推荐(0)
摘要: 之前在项目中用到了 vant,使用特别简单,而且组建也非常的丰富。即时这样,在项目中肯定也需要用额外的样式来打造自己的应用。直接在 <style lang="scss" scoped> .... </style> 中编写的话只会影响当前组件内的样式,但如果去掉scoped话又会影响全局样式。想了好多 阅读全文
posted @ 2021-03-15 11:27 新新新新新手 阅读(350) 评论(0) 推荐(0)
摘要: vue中css样式不起作用,用!important也不起作用,此时需要用 /deep/ ,没加之前是 加了之后起作用了,此时这个deep是深度作用域 学习文档,转载自:https://www.cnblogs.com/zxcc/p/10785887.html 阅读全文
posted @ 2021-03-15 11:25 新新新新新手 阅读(32) 评论(0) 推荐(0)
摘要: js中 => 的含义=>是es6语法中的arrow function (x) => x + 6 相当于 function(x){return x + 6;}; 学习文档,转载自:https://blog.csdn.net/qq123aa2006/article/details/89208810 阅读全文
posted @ 2021-03-15 11:23 新新新新新手 阅读(87) 评论(0) 推荐(0)