摘要: <Modal v-model="zsdepartmentModal" title="选择部门" :mask-closable="false" width="1200" @on-cancel="zsdepartmentModalCancel" > <div class="department-moda 阅读全文
posted @ 2022-06-08 16:32 Chaplink 阅读(672) 评论(0) 推荐(0) 编辑
摘要: 一、div内显示一行,超出部分用省略号显示 white-space: nowrap; overflow: hidden; text-overflow: ellipsis;二、div内显示两行或三行,超出部分用省略号显示 overflow: hidden; text-overflow: ellipsi 阅读全文
posted @ 2022-02-13 00:01 Chaplink 阅读(1418) 评论(0) 推荐(0) 编辑
摘要: ps aux |grep xxx 查看xxx的进程 rm -rf xxx 删除xxx文件 kill -9 xxx 强制杀死xxx进程 lsof -i tcp:xxxx 查看xxxx的端口号占用情况 阅读全文
posted @ 2022-02-11 09:48 Chaplink 阅读(17) 评论(0) 推荐(0) 编辑
摘要: DIV、P标签首行缩进 <div style="text-indent:2em;">缩进的内容</div><p style="text-indent:2em;">缩进的内容</p>span标签首行缩进<span style="display:block;text-indent:2em;">缩进的内容 阅读全文
posted @ 2022-01-23 14:56 Chaplink 阅读(752) 评论(2) 推荐(1) 编辑
摘要: push()添加一个元素 add(){ this.arr.push(1) } pop() 删除最后一个元素 removeLast(){ this.arr.pop() } shift() 删除第一个元素 removeFirst(){ this.arr.shift() } unshift() 添加一个元 阅读全文
posted @ 2022-01-19 17:37 Chaplink 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 答:created:在模板渲染成html前调用,即通常初始化某些属性值,然后再渲染成视图。mounted:在模板渲染成html后调用,通常是初始化页面完成后,再对html的dom节点进行一些需要的操作。 阅读全文
posted @ 2022-01-19 16:48 Chaplink 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 答:beforeCreate:在new一个vue实例后,只有一些默认的生命周期钩子和默认事件,其他的东西都还没创建。在beforeCreate生命周期执行的时候,data和methods中的数据都还没有初始化。不能在这个阶段使用data中的数据和methods中的方法create:data 和 me 阅读全文
posted @ 2022-01-19 16:46 Chaplink 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 用法:query要用path来引入,params要用name来引入,接收参数都是类似的,分别是this.$route.query.name和this.$route.params.name。url地址显示:query更加类似于我们ajax中get传参,params则类似于post,说的再简单一点,前者 阅读全文
posted @ 2022-01-19 16:42 Chaplink 阅读(324) 评论(0) 推荐(0) 编辑
摘要: es6推广的原因在于它更加轻盈方便,spread运算符、rest操作符以及解构赋值知识都是es6的新语法,接下来看看它们都分别是什么。 - spread运算符spread运算符常常用于数组的解析与构造: var arr1 = ['a','b','c'];var arr2 = ['aa','bb',' 阅读全文
posted @ 2022-01-19 15:57 Chaplink 阅读(115) 评论(0) 推荐(0) 编辑
摘要: this.$confirm('内容', '标题', { dangerouslyUseHTMLString: true, confirmButtonText: '复制', //按钮的文本 showClose: false, showCancelButton: false, center: true / 阅读全文
posted @ 2022-01-15 11:19 Chaplink 阅读(164) 评论(0) 推荐(0) 编辑