随笔分类 -  前端

摘要:代码 //依赖库 const zlib = require('zlib') // client是websocket连接 client.onmessage = (e)=> { console.log(e.data) let data = Buffer.from(zlib.gunzipSync(e.da 阅读全文
posted @ 2021-05-19 15:33 HumorChen99 阅读(54) 评论(0) 推荐(0) 编辑
摘要:效果图 在app.vue中直接添加一下代码即可 <style lang="scss"> .el-switch__label--left { position: relative; left: 45px; color: #fff; z-index: -1111; } .el-switch__core{ 阅读全文
posted @ 2020-09-17 20:02 HumorChen99 阅读(13) 评论(0) 推荐(0) 编辑
摘要:**v-model绑定输入框内容的时候,如果传入的是个未定义的属性,那么在代码里进行赋值初始化输入框内容的时候不能直接 obj.a='xxx' 这样值虽然插入了输入框,但是你会发现输入框会变得无法输入东西,需要用this.$set去赋值就不会出问题了。** template中(省去el-form等其 阅读全文
posted @ 2020-08-13 16:11 HumorChen99 阅读(8) 评论(0) 推荐(0) 编辑
摘要:div::-webkit-scrollbar {/*滚动条整体样式*/ width: 10px; /*高宽分别对应横竖滚动条的尺寸*/ height: 1px; } div::-webkit-scrollbar-thumb {/*滚动条里面小方块*/ border-radius: 10px; -we 阅读全文
posted @ 2020-04-04 09:44 HumorChen99 阅读(6) 评论(0) 推荐(0) 编辑
摘要:基于JQuery 第一步:添加插件到JQuery ; (function ($) { /* flagName:标识绑定字段元素的属性,如: data-bind是寻找绑定字段的属性: <input data-bind='Time' type='text' /> <input data-bind='Us 阅读全文
posted @ 2020-03-24 04:02 HumorChen99 阅读(7) 评论(0) 推荐(0) 编辑
摘要:数据如图 网页代码 计划效果 实际效果 原因: 对象嵌套了数组,数组嵌套了对象,且是多层的,因此Vue无法检测到内部的更新或增删。 解决办法: this.$forceUpdate();//this代表的是vue对象 阅读全文
posted @ 2020-03-09 06:16 HumorChen99 阅读(5) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示