会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
埃菲尔上的加菲猫
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
下一页
2022年3月1日
uniapp文本过长省略或文本过长换行显示
摘要: 文本过长显示省略号,一般高度固定且不是auto .chatRoomLMessage { width: 400rpx; margin-top: 15rpx; color: #b0b0b0; font-size: 0.7em; overflow: hidden; text-overflow:ellips
阅读全文
posted @ 2022-03-01 10:07 埃菲尔上的加菲猫
阅读(1081)
评论(0)
推荐(0)
2022年2月24日
各种布局
摘要: 固定布局:全部使用像素设置大小; 流式布局:盒子设置百分比,可随页面改变大小,但是字体的大小无法更改 弹性布局(flex布局):根据基准大小,改变字体或页面的大小 响应式布局:根据页面的大小自动调整 自适应布局:先预设一些布局模板,根据机型去判断展示哪个模板 可以给body设置 min-width=
阅读全文
posted @ 2022-02-24 13:18 埃菲尔上的加菲猫
阅读(39)
评论(0)
推荐(0)
vue axios
摘要: axios 使用post传参 1.后台接收JavaBean格式 方法一:let adminInfo=JSON.parse(JSON.stringify(list));//需要转成json对象 http({ url: '/dic-code/edit', method: 'post', headers:
阅读全文
posted @ 2022-02-24 13:17 埃菲尔上的加菲猫
阅读(29)
评论(0)
推荐(0)
2022年2月22日
根据日期计算年龄
摘要: let d = new Date(val)//生日val:1999-01-01 let t = d.getTime(d) // 转换为时间戳 var t1 = Date.parse(new Date());//获取当前时间戳 let t2 = t1 - t;//计算时间戳之差 t2 = t2 / 1
阅读全文
posted @ 2022-02-22 13:35 埃菲尔上的加菲猫
阅读(141)
评论(0)
推荐(0)
2022年2月17日
终端的各种错误
摘要: 1.克隆项目后报错 克隆项目步骤 1.下载依赖 yarn install 2.运行yarn serve 如果报错 运行:yarn run 之后选择dev 2.'vue-cli-service' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 因为没有node_modules 运行yarn i
阅读全文
posted @ 2022-02-17 13:07 埃菲尔上的加菲猫
阅读(44)
评论(0)
推荐(0)
2022年2月16日
vue清空对象中的属性值
摘要: //清空uploadFrom对象 personMesssage:{ name:'', //姓名 birthday:'', //出生日期 educationBackground:'', //学历 sex:'', //性别 age:'', //年龄 }, Object.keys(this.personM
阅读全文
posted @ 2022-02-16 13:47 埃菲尔上的加菲猫
阅读(867)
评论(0)
推荐(0)
2022年1月25日
修改el-input的placehoder文字颜色
摘要: /deep/.el-input__inner::placeholder { color: #606266; }
阅读全文
posted @ 2022-01-25 16:01 埃菲尔上的加菲猫
阅读(398)
评论(0)
推荐(0)
vue点击更改背景颜色
摘要: <template> <div> <div v-for="(item, index) in nameoptions" :class="{ active: index == isActive }" @click="checkItem(index)" :key="item.name" > {{ item
阅读全文
posted @ 2022-01-25 15:29 埃菲尔上的加菲猫
阅读(1220)
评论(0)
推荐(0)
2022年1月24日
vue class或style 动态表达式
摘要: :class="index tableIndex-1 ? 'trBac' : ''" :style="{background:(bacFlag 'search'?'#10A6B4':'')}" 对象写法: html :style="{color:(index==0?conFontColor:'#00
阅读全文
posted @ 2022-01-24 15:51 埃菲尔上的加菲猫
阅读(689)
评论(0)
推荐(0)
2022年1月20日
vue基于element的模态框放大缩小可拖动
摘要: 封装的js文件 import Vue from 'vue'; import bigPic from '../assets/images/bigChange.png'; // v-dialogDrag: 弹窗拖拽属性 Vue.directive('dialogDrag', { bind(el, bin
阅读全文
posted @ 2022-01-20 10:17 埃菲尔上的加菲猫
阅读(738)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
下一页
公告