摘要: 一:判断java中的字符串是否为数字,可以通过正则表达式来判断;其判断逻辑如下: 1、根据阿里巴巴代码规范,将Pattern设置为全局常量,通过 -?[0-9]+(\\\\.[0-9]+)? 进行匹配是否为数字 private static final Pattern pattern = Patte 阅读全文
posted @ 2023-08-30 16:55 见贤思“奇” 阅读(502) 评论(0) 推荐(0) 编辑
摘要: <div id="middle" ref="middle" @mousedown="dragMousedown"></div> #middle{ width: 5px; height: 100%; background-color: #d6d6d6; margin-top: -40px; posit 阅读全文
posted @ 2023-02-17 17:24 见贤思“奇” 阅读(154) 评论(0) 推荐(0) 编辑
摘要: :is(.parent1, .parent2, ...) > child { ... } 当同时修改多个类名下的子类时可以用 :is(.parent1,... 各种类名 )>child 阅读全文
posted @ 2023-01-05 15:35 见贤思“奇” 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1 <!-- 快速键入多个标签 div*3[tab] --> 2 <div tab=""></div> 3 <div tab=""></div> 4 <div tab=""></div> 5 <!-- 带id和类名的标签 div.name#age*3--> 6 <div class="name" i 阅读全文
posted @ 2022-12-25 15:00 见贤思“奇” 阅读(33) 评论(0) 推荐(0) 编辑
摘要: <div class="list"> <div class="list-item" draggable="true" style="--color:#e63e31"> <span class="list-item-title">双鱼座</span> </div> <div class="list-i 阅读全文
posted @ 2022-12-23 10:26 见贤思“奇” 阅读(57) 评论(0) 推荐(0) 编辑
摘要: <div class="list"> <div class="list-item" draggable="true" style="--color:#e63e31"> <span class="list-item-title">双鱼座</span> </div> <div class="list-i 阅读全文
posted @ 2022-12-23 10:19 见贤思“奇” 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 有时候git提交容易出现想pull的时候但是已经commit了的报错 这时候可以先将commit暂时隐藏 解决方案:修复冲突第一步:git stash第二步:git pull --rebase第三步:git stash pop 阅读全文
posted @ 2022-11-20 21:46 见贤思“奇” 阅读(18) 评论(0) 推荐(0) 编辑
摘要: // 1.使用wx.createSelectorQuery()查询到需要滚动到的元素位置 wx.createSelectorQuery().select('#bb4').boundingClientRect(res => { console.log(res); // 到这里,我们可以从res中读到c 阅读全文
posted @ 2022-08-16 11:28 见贤思“奇” 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1.创建directive.js文件 import Vue from "vue"; // 提交验证 Vue.directive("clickOutside", { // 初始化指令 bind(el, binding, vnode) { function clickHandler(e) { // 这里 阅读全文
posted @ 2022-07-12 10:09 见贤思“奇” 阅读(1414) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/tdl081071tdy/article/details/106547045 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" cont 阅读全文
posted @ 2022-06-30 09:50 见贤思“奇” 阅读(453) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示