摘要:// 待处理的数据 var map = [{ id: 3, name: 3, parentId:1 },{ id: 1, name: 1 },{ id: 2, name: 2, parentId:1 }] // 将每个对象存在obj id => item var obj = {} for(var i = 0; i< map.length; i++){ let item = map[i] if(!o
阅读全文
09 2019 档案
摘要:字体文件下载,然后解压得到 UnidreamLED.ttf 在入口文件加上下面css代码 @font-face { font-family: LEDFont; font-size: 36px; src: url('./UnidreamLED.ttf'); } 需要显示的数字 加上class LEDF
阅读全文
摘要:.class{ text-overflow: -o-ellipsis-lastline; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
阅读全文