摘要: 原题:给定字符串 str,检查其是否包含连续重复的字母(a-zA-Z),如'battle'中字母't'重复,输出true 此题我的第一印象是使用循环遍历解决: function containsRepeatingLetter(str) { var isRepeat = false for(var i 阅读全文
posted @ 2020-08-03 17:29 neeter 阅读(486) 评论(0) 推荐(0)
摘要: 在less中使用calc函数进行不同长度单位的计算时,后面值的单位会被忽略,例如: height: calc(100vh - 50px); 结果等于50vh 解决方法:在表达式前添加"~" height: calc(~"100vh - 50px"); 阅读全文
posted @ 2020-08-03 10:04 neeter 阅读(1252) 评论(0) 推荐(1)