![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
web前端开发
文章平均质量分 50
星雪之域
永无止境
展开
-
进度条(CSS)
进度条效果(实际有动态效果)html<div class="progress-bar"> <div class="progress-bg"></div></div>css.progress-bar{ width: 100%; height: 30px; overflow: hidden; box-sizing: border-box; border-radius: 24px; background-color: rg原创 2021-08-27 15:29:51 · 6272 阅读 · 0 评论 -
egg搭建服务端
搭建egg项目快速生成项目(npm >=6.1.0):$ npm init egg --type=simple$ npm i启动项目:$ npm run dev$ open http://localhost:7001连接mysql数据库安装插件 egg-mysql :$ npm i --save egg-mysql开启插件:// config/plugin.jsmodule.exports = { mysql: { enable: true, pack原创 2021-07-13 16:38:00 · 414 阅读 · 0 评论 -
JS校验正则笔记总结
1、输入框控制输入最多两位小数function controlTwoDecimal(v) { v = v.toString() v = v.replace(/[^\d.]/g, "") // 清除"数字"和"."以外的字符 v = v.replace(/\.{2,}/g, ".") // 只保留第一个. 清除多余的 v = v.replace(/^0+\./g, '0.') v = v.match(/^0+[1-9]+/) ? v = v.replace(/^0+/原创 2021-05-08 13:49:53 · 202 阅读 · 0 评论