摘要: 最近公司项目碰到一个问题,就是$on $off的用法问题 是这么封装的(因为是用的qiankun,eventbus挂载到window上了)。 export async function getPatients(fn) { window.eventBus.$on(events.GET_PATIENT_ 阅读全文
posted @ 2021-02-02 15:13 微木Vmumu 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: 一、行政区获取 公司需要做大屏数据展示,地图地区需要到街道级别。 查看了不少资料。 目前的解决方案是,省市级别的数据在阿里地图选择器下载( http://datav.aliyun.com/tools/atlas/),可以做到县级下钻,如果要下钻到街道级别,则需要网上找这部分数据(找了很多,不大靠谱。 阅读全文
posted @ 2020-07-21 17:40 微木Vmumu 阅读(3171) 评论(3) 推荐(4) 编辑
摘要: Object.prototype.clone = function(){ var o = this.constructor Array ? [] : {} for(var e in this){ o[e] = typeof this[e] == 'object' ? this[e].clone() 阅读全文
posted @ 2020-05-10 16:27 微木Vmumu 阅读(139) 评论(0) 推荐(0) 编辑
摘要: // 原型 console.log(Array.prototype.isPrototypeOf(file)) // 构造函数 console.log(file instanceof Array) console.log(Object.prototype.toString.call(file)) // 阅读全文
posted @ 2020-03-26 16:46 微木Vmumu 阅读(109) 评论(0) 推荐(0) 编辑
摘要: let barRoute = { path: '/', component: () => import('../view/basicView'), redirect: '/home', children: [ // 带底部导航 ] } let routes = [ barRoute, { name: 阅读全文
posted @ 2020-03-12 15:39 微木Vmumu 阅读(374) 评论(0) 推荐(0) 编辑
摘要: sass循环 @for $var from 1 to 10 { .mtp#{$var} { margin-top:px2rem($var * 10)} .mbt#{$var} { margin-bottom:px2rem($var * 10)} .mlt#{$var} { margin-left:p 阅读全文
posted @ 2020-03-09 15:36 微木Vmumu 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 一个简单的圆运动canvas 阅读全文
posted @ 2019-08-21 14:18 微木Vmumu 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 输入vue,选择编辑vue.json,插入json对象 阅读全文
posted @ 2019-07-25 09:14 微木Vmumu 阅读(4203) 评论(0) 推荐(0) 编辑
摘要: function MyClassList(classes, dom){ [].push.apply(this, classes) Object.defineProperty(this, "__value__", { enumerable: false, set: function(val){ dom.className = val; } }) } MyClassList.... 阅读全文
posted @ 2019-05-10 16:29 微木Vmumu 阅读(843) 评论(0) 推荐(0) 编辑
摘要: 博客本地数据库版本mariadb 10.2,而服务器是5.5,在查询列表数据统计总数的sql里,服务器上count(1) over()报错。sql拎出来在窗口查询也报错。错误说明‘You have an error in your SQL syntax; check the manual that 阅读全文
posted @ 2019-02-12 16:08 微木Vmumu 阅读(372) 评论(0) 推荐(0) 编辑