摘要: 效果图: wxml: <view class="page-body"> <view class="page-section page-section-spacing swiper"> <swiper circular="true" indicator-color="white" indicator- 阅读全文
posted @ 2023-03-30 08:18 caq0000 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 效果图: wxml: <view class="box2"> <view class="box21">- 近期推荐 -</view> <view class="hotService"> <view class="hotServiceList_box"> <!-- 这里为滚动的内容部分 --> <sc 阅读全文
posted @ 2023-03-30 08:14 caq0000 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 输入 : afjghdfraaaasdenas 输出 : a function findMaxDuplicateChar(str) { if(str.length == 1) { return str; } let charObj = {}; for(let i=0;i<str.length;i++ 阅读全文
posted @ 2023-03-25 08:21 caq0000 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 这个问题出现在诸多的前端面试题中,主要考察个人对Object的使用,利用key来进行筛选。 let unique = function(arr) { let hashTable = {}; let data = []; for(let i=0,l=arr.length;i<l;i++) { if(! 阅读全文
posted @ 2023-03-25 08:19 caq0000 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 一.var,let,const区别1.变量提升:var存在变量提升,即变量可在声明前调用,值为undefined,let,const不存在变量提升2.暂时性死区:var不存在,let,const存在,只有等到声明变量那一刻才能使用3.块级作用域:var不存在作用域,let和const存在块级作用域4 阅读全文
posted @ 2023-03-15 08:36 caq0000 阅读(281) 评论(0) 推荐(0) 编辑