美文网首页uniApp
Vue 使用随笔 (持续更新)

Vue 使用随笔 (持续更新)

作者: GloryMan | 来源:发表于2019-11-05 15:24 被阅读0次
    1. 数组删除元素
      表示先获取这个元素的下标,
      然后从这个下标开始计算,删除长度为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

    相关文章

      网友评论

        本文标题:Vue 使用随笔 (持续更新)

        本文链接:https://www.haomeiwen.com/subject/petebctx.html