- 数组删除元素
表示先获取这个元素的下标,
然后从这个下标开始计算,删除长度为1的元素this.users.splice(this.users.indexOf(user),1);
1.css 文本但行多行莫为添加省略号
// 多行末尾省略号
height: 100rpx;
line-height: 33rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
// 单行末尾添加省略号
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
屏幕快照 2019-11-08 上午9.20.04.png
屏幕快照 2019-11-08 上午9.22.53.png
网友评论