摘要: str = "$aa$+abcd$bb$(a=1)efgh" daole = str.match(/(?<=\$)[^\$]+(?=\$)/g); 阅读全文
posted @ 2022-04-02 18:10 tt78 阅读(236) 评论(0) 推荐(0)
摘要: /(^0\.[5-9]\d*$)|(^\d*[1-9](\.\d+)?$)|(^[1-9]\d*(\.\d+)?$)/ 阅读全文
posted @ 2022-03-24 09:08 tt78 阅读(82) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: 方法 wx.canvasGetImageData的参数 width,height 只能是整数 阅读全文
posted @ 2020-05-19 18:43 tt78 阅读(2128) 评论(0) 推荐(0)
摘要: 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)
摘要: 在 File - settings - Editor - General- Smart Keys - Enter 去掉 Insert pair '}' 的对勾就可以了 阅读全文
posted @ 2019-05-10 12:33 tt78 阅读(3471) 评论(2) 推荐(1)