摘要: text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; overflow: hidden; /*! autoprefixer: off */ -webkit-box-orient: vertical; /*! aut 阅读全文
posted @ 2021-09-30 17:15 桃李子 阅读(650) 评论(0) 推荐(0) 编辑
摘要: 1、chartAt:string.charAt(index),返回指定位置的字符; 2、chartCodeAt:string.charCodeAt(index),返回指定位置的字符的 Unicode 编码( 0 - 65535); 3、fromCharCode:String.fromCharCode 阅读全文
posted @ 2021-09-30 17:04 桃李子 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 一、查找类 1、find:array.find(function(currentValue, index, arr),thisValue),第二个参数基本不使用,返回查找到的元素,查找不到返回undefined,不改变原数组; 2、findIndex:array.findIndex(function 阅读全文
posted @ 2021-09-30 11:37 桃李子 阅读(156) 评论(0) 推荐(0) 编辑