10 2023 档案
摘要:页面请求报【Failed to load resource: net::ERR_CONNECTION_ABORTED】错误,查了下是文件过大导致上传失败,element-ui本身没有大小限制,最后排查是Nginx默认是上传一个不能超过1M大小的文件 # 设置客户端传文件通过nginx大小 clien
阅读全文
摘要:一. 引入时间戳,生成可控长度的随机数 随机数长度控制,定义一个长度变量(length),生成可控长度的随机数: Math.random().toString(36).substr(3,length) 引入时间戳: Date.now().toString(36) 合在一起最终办法: genID(le
阅读全文
摘要:```bash $color:#3497ee; @mixin opacity($value) { opacity: $value; filter: alpha(opacity=$value*100); } @mixin transition($obj, $time) { -webkit-transi
阅读全文