会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tt78
博客园
首页
新随笔
联系
管理
订阅
2022年4月2日
js 正则 获取两个$$内的内容
摘要: str = "$aa$+abcd$bb$(a=1)efgh" daole = str.match(/(?<=\$)[^\$]+(?=\$)/g);
阅读全文
posted @ 2022-04-02 18:10 tt78
阅读(236)
评论(0)
推荐(0)
2022年3月24日
js 大于0.5的正则
摘要: /(^0\.[5-9]\d*$)|(^\d*[1-9](\.\d+)?$)|(^[1-9]\d*(\.\d+)?$)/
阅读全文
posted @ 2022-03-24 09:08 tt78
阅读(82)
评论(0)
推荐(0)
2021年7月8日
vue移动端中使用lib-flexible和px2rem,导致第三方UI库的样式也变小的问题
摘要: 1)找到build/utils.js注释掉px2rem-loader 2)安装postcss-px2rem-exclude,npm i postcss-px2rem-exclude -D 3)package.json添加下面代码 "postcss": { "plugins": { "autopref
阅读全文
posted @ 2021-07-08 16:30 tt78
阅读(322)
评论(0)
推荐(0)
2020年12月7日
lodash js 双色球生成器
摘要: function ball(count,num){ return _.sampleSize(_.shuffle(_.times(count,a=>a+1)),num) } //红球 function redBall(){ return ball(33,6) } //篮球 function blueB
阅读全文
posted @ 2020-12-07 18:21 tt78
阅读(226)
评论(0)
推荐(0)
2020年5月19日
微信小程序canvas canvasGetImageData方法真机获得数据显示到image为空白
摘要: 方法 wx.canvasGetImageData的参数 width,height 只能是整数
阅读全文
posted @ 2020-05-19 18:43 tt78
阅读(2128)
评论(0)
推荐(0)
2020年4月17日
小程序wepy2 模拟vant PasswordInput, NumberKeyboard 密码输入框控件
摘要: vant weapp小程序端控件目前是没有PasswordInput,NumberKeyboard的。实现效果: 数字键盘组件代码(keyboard.wpy): <template> <div class="keyboard"> <div class="number-keyboard number-
阅读全文
posted @ 2020-04-17 16:43 tt78
阅读(1158)
评论(0)
推荐(0)
2019年5月10日
IntelliJ IDEA 在方法大括号中{}点击回车多出一个},如何取消
摘要: 在 File - settings - Editor - General- Smart Keys - Enter 去掉 Insert pair '}' 的对勾就可以了
阅读全文
posted @ 2019-05-10 12:33 tt78
阅读(3471)
评论(2)
推荐(1)
公告