会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
智商感人
就是一个码农罢~
新随笔
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
···
25
下一页
2022年3月24日
数组根据对象的属性重新排序
摘要: const list = [ {id:1,age:44,index: 3}, {id:2,age:32,index: 1}, {id:3,age:22,index: 4}, {id:4,age:26,index: 2}, ] const compare = key => { return (valu
阅读全文
posted @ 2022-03-24 22:31 智商感人
阅读(36)
评论(0)
推荐(0)
2022年3月23日
vscode 自动格式化时,去掉、添加逗号、分号,双引号变单引号
摘要: ###方法一: ctrl+shift+P,找到 settings.json: "prettier.semi": false, // 分号 "prettier.singleQuote": true, // 单引号 "prettier.trailingComma": "none" // 去掉结尾的逗号
阅读全文
posted @ 2022-03-23 11:46 智商感人
阅读(5213)
评论(0)
推荐(0)
vue 全局引入 scss 变量
摘要: 注意,他们不是实体的样式,所以在index.scss中引入是没有用的。 所以需要在vue.config.js中去配置 const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transp
阅读全文
posted @ 2022-03-23 01:22 智商感人
阅读(503)
评论(0)
推荐(0)
2022年3月18日
随机生成guid 随机数
摘要: let guid = () => { function S4() { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); } return ( S4() + S4() + "-" + S4() + "-" +
阅读全文
posted @ 2022-03-18 17:17 智商感人
阅读(108)
评论(0)
推荐(0)
样式 深度作用选择器 /deep/ 、::v-deep、 >>>三种方式
摘要: 在vue项目中的style标签里 1.Scoped ·当 <style> 标签有 scoped 属性时,它的 CSS 只作用于当前组件中的元素, 父组件的样式将不会渗透到子组件中。 2.子组件的根元素 使用 scoped 后,父组件的样式将不会渗透到子组件中。不过一个子组件的根节点会同时受其父组件的
阅读全文
posted @ 2022-03-18 12:28 智商感人
阅读(846)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
25
下一页