摘要: 常用正则表达式 一、校验数字的表达式 数字:^[0-9]*$ n位的数字:^\d{n}$ 至少n位的数字:^\d{n,}$ m-n位的数字:^\d{m,n}$ 零和非零开头的数字:^(0|[1-9][0-9]*)$ 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(\.[0-9]{1, 阅读全文
posted @ 2022-08-24 17:48 写bug的靓仔 阅读(36) 评论(0) 推荐(0)
摘要: 代码如下 import axios,{ AxiosResponse, AxiosRequestConfig } from 'axios' const isDev = process.env.NODE_ENV == 'development' const request=axios.create({ 阅读全文
posted @ 2022-08-24 14:42 写bug的靓仔 阅读(104) 评论(0) 推荐(0)
摘要: 利用canvas 实现绘制线 多边形图案 并且可以动态修改其 大小 形状 代码如下 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> body, html { 阅读全文
posted @ 2022-02-17 16:37 写bug的靓仔 阅读(710) 评论(0) 推荐(0)
摘要: 在不用框架时,头, 尾一般以公共资源引入 ,footer 的内容时异步刷新的所以高度是不定的 ,所以iframe 的高度也需要自适应 html <iframe id="frameFooter" class="homeIframefooter" src="../public/footer.html" 阅读全文
posted @ 2021-02-25 10:02 写bug的靓仔 阅读(257) 评论(0) 推荐(0)
摘要: 利用npm start启动项目之后,关闭服务器控制的命令窗口(Xshell)之后对应的端口也关闭了,或者ctrl c结束之后。这时候就需要forever 来管理我们的服务器项目 启动 cd 你的项目路径 forever start -a bin/www forever start -a app.js 阅读全文
posted @ 2021-01-24 21:31 写bug的靓仔 阅读(113) 评论(0) 推荐(0)
摘要: 在设列的置宽度时 width 属性是不支持 百分比的 所以需要用min-width 属性去设置列宽 <el-table-column prop="userName" label="姓名(中文)" align="center" min-width="7%"> 记录一下。 阅读全文
posted @ 2020-11-16 10:47 写bug的靓仔 阅读(1315) 评论(0) 推荐(0)