![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
二字十一画与
技术小白的成长之路
展开
-
计算出数组里每个元素的个数,并且把计算出来的个数放在另一个新的数组里
var array =["hello","hello","world","world","wed","wed","wed","ert"] function getWordCnt(){ var obj = {}; for(var i= 0, l = array.length; i< l; i++){ var item = array[i]; obj[item] = (obj[item] +1 ) || 1; } var a原创 2020-05-12 15:23:15 · 302 阅读 · 0 评论 -
清明节全网灰色主题CSS
html { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); !*-ms-filter: grayscale(100%);*! -o-filter: grayscale(100%); filter:progid:DXImageTransfor...原创 2020-04-28 10:22:34 · 360 阅读 · 0 评论