• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
魏无羡的小古板
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 下一页
2021年10月8日
js 进制转换
摘要: //number.toString(radix); //radix范围2~36,不写就是十进制 var num = 255; console.log(num.toString(16));// 十进制转十六进制 console.log(num.toString(16).toUpperCase());/ 阅读全文
posted @ 2021-10-08 13:18 魏无羡的小古板 阅读(197) 评论(0) 推荐(0)
2021年9月29日
css 设置文字颜色渐变
摘要: <div class="text">text word</div> .text{ font-size: 40px; font-weight: 600; background-image: linear-gradient(to right, red, rgb(255, 174, 0), yellow, 阅读全文
posted @ 2021-09-29 09:12 魏无羡的小古板 阅读(170) 评论(0) 推荐(0)
2021年9月28日
vue 使用MQTT服务进行数据传输
摘要: index.html中引入mqtt文件 <script src="./js/mqttws31.min.js" type="text/javascript"></script> vue 文件中使用 data(){ return{ topic:"message-topic", color:"" } } 阅读全文
posted @ 2021-09-28 16:32 魏无羡的小古板 阅读(2030) 评论(0) 推荐(0)
2021年9月23日
input type='file' 时,连续选取同一个文件onchange 没反应,需要将前面或取得value值删除
摘要: <input type="file" multiple @change="changeFile" ref="file" name="fileElem" id="fileElem" /> changeFile(e){ this.file = e.target.files[0] document.get 阅读全文
posted @ 2021-09-23 11:09 魏无羡的小古板 阅读(186) 评论(0) 推荐(0)
2021年9月17日
vue 上传较大的文件
摘要: 使用插件 vue-simple-uploader npm install vue-simple-uploader --save npm install spark-md5 --save main.js 中添加 import uploader from 'vue-simple-uploader'; V 阅读全文
posted @ 2021-09-17 09:53 魏无羡的小古板 阅读(1051) 评论(0) 推荐(0)
2021年9月16日
elementui menu 弹出框调整
摘要: 全局 #jsRYopUU3l,#jsRYopUU3ltc360{ position:fixed; z-index:-99999 } 阅读全文
posted @ 2021-09-16 15:51 魏无羡的小古板 阅读(163) 评论(0) 推荐(0)
js 数组根据某一字段排序
摘要: function sorts_fun(arr) { return function(a, b) { var v1 = a[arr]; var v2 = b[arr]; return v1 - v2; }; }; a= a.sort(sorts_fun('orderNum')); 阅读全文
posted @ 2021-09-16 12:21 魏无羡的小古板 阅读(2219) 评论(0) 推荐(0)
elementui table 中 v-if 有时显示和隐藏不起作用
摘要: 在 el-table-column 中加一个key就好了 <el-table-column label="难易度" prop="facilityValueName" key="facilityValueName" width="80" /> 阅读全文
posted @ 2021-09-16 10:04 魏无羡的小古板 阅读(789) 评论(0) 推荐(0)
2021年9月15日
h5 input=file 按钮样式修改
摘要: <div class="fileBtn"> <input type="file" /> </div> <style> .fileBtn{ position: relative; display: inline-block; background: #409EFF; border: 1px solid 阅读全文
posted @ 2021-09-15 11:32 魏无羡的小古板 阅读(479) 评论(0) 推荐(0)
2021年7月16日
cookie、localstorage、seesionstorage的区别
摘要: cookie 4kb左右 每次都会携带在HTTP头中,如果使用cookie保存过多数据会带来性能问题 默认是关闭浏览器后失效, 但是也可以设置过期时间 localstorage 5M 仅在浏览器中保存,不参与和服务器的通信 除非手动被清除,否则永久保存 SessionStorage 5M 仅在浏览器 阅读全文
posted @ 2021-07-16 15:39 魏无羡的小古板 阅读(72) 评论(0) 推荐(0)
上一页 1 2 3 4 5 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3