摘要: 官方文档:https://www.npmjs.com/package/mqtt 使用: let mqtt = require('mqtt'); let client = {}; //开启mqtt链接 client = mqtt.connect('ws://192.168.0.0/mqtt', { p 阅读全文
posted @ 2019-12-10 18:10 码弄 阅读(10623) 评论(0) 推荐(0) 编辑
摘要: //数组对象去重复deteleObject(obj) { var uniques = []; var stringify = {}; for (var i = 0; i < obj.length; i++) { var keys = Object.keys(obj[i]); keys.sort(fu 阅读全文
posted @ 2019-11-02 16:48 码弄 阅读(841) 评论(0) 推荐(0) 编辑
摘要: 需要使用pinyin.js得到每个名字的首字母 阅读全文
posted @ 2019-08-29 15:46 码弄 阅读(1726) 评论(0) 推荐(0) 编辑
摘要: this.data.forEach((item,index)=>{ needData.push( Object.assign({},item, {'addAttr':'addAttrContent'}) ) }) 阅读全文
posted @ 2019-08-29 15:18 码弄 阅读(14620) 评论(0) 推荐(1) 编辑
摘要: 在html5中增加了classList document.getElementById("button").classList.add(“active”); document.getElementById("button").classList.remove("active"); 阅读全文
posted @ 2019-08-29 10:22 码弄 阅读(7706) 评论(0) 推荐(0) 编辑
摘要: 1.先提交一波 为后续切分支准备 (xxx1为自己的分支 xxx2为想要拉取的分支) git add . git commit -m 'yyy' git push origin xxx1 2.然后git切换到你所要拉取的分支xxx2 拉取该分支代码 git checkout xxx2 git pul 阅读全文
posted @ 2019-08-26 10:36 码弄 阅读(20577) 评论(0) 推荐(2) 编辑
摘要: <template> <div v-show="showEdit" style="display:flex;flex-direction:column;position: absolute;right: 30px;z-index: 3000;border-radius: 4px;border: 1p 阅读全文
posted @ 2019-08-17 16:22 码弄 阅读(1021) 评论(0) 推荐(0) 编辑
摘要: "1337 Color Scheme", "AdvancedNewFile", "AutoFileName", "Babel", "DocBlockr", "HTML-CSS-JS Prettify", "JavaScript Completions", "jQuery", "JsFormat", 阅读全文
posted @ 2019-07-24 09:21 码弄 阅读(587) 评论(0) 推荐(0) 编辑
摘要: .tabContainer { width: 1200px; height: auto; margin: 0 auto; background: #D4E3FB; position: relative; } .tabContainer .el-tabs--border-card{ border: n 阅读全文
posted @ 2019-07-23 16:50 码弄 阅读(17504) 评论(0) 推荐(0) 编辑
摘要: element中的NavMenu在vue中的使用 阅读全文
posted @ 2019-07-23 16:37 码弄 阅读(978) 评论(0) 推荐(0) 编辑