会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
微木Vmumu
博客园
首页
新随笔
联系
订阅
管理
2021年2月2日
Vue eventBus $on与$off
摘要: 最近公司项目碰到一个问题,就是$on $off的用法问题 是这么封装的(因为是用的qiankun,eventbus挂载到window上了)。 export async function getPatients(fn) { window.eventBus.$on(events.GET_PATIENT_
阅读全文
posted @ 2021-02-02 15:13 微木Vmumu
阅读(1317)
评论(0)
推荐(0)
2020年7月21日
省、市、区、街道行政区数据以及行政区数据合并问题
摘要: 一、行政区获取 公司需要做大屏数据展示,地图地区需要到街道级别。 查看了不少资料。 目前的解决方案是,省市级别的数据在阿里地图选择器下载( http://datav.aliyun.com/tools/atlas/),可以做到县级下钻,如果要下钻到街道级别,则需要网上找这部分数据(找了很多,不大靠谱。
阅读全文
posted @ 2020-07-21 17:40 微木Vmumu
阅读(3667)
评论(3)
推荐(4)
2020年5月10日
对象clone
摘要: 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
阅读(141)
评论(0)
推荐(0)
2020年3月26日
判断是对象还是数组对象
摘要: // 原型 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
阅读(113)
评论(0)
推荐(0)
2020年3月12日
Vue路由配置是否含底部导航栏
摘要: let barRoute = { path: '/', component: () => import('../view/basicView'), redirect: '/home', children: [ // 带底部导航 ] } let routes = [ barRoute, { name:
阅读全文
posted @ 2020-03-12 15:39 微木Vmumu
阅读(381)
评论(0)
推荐(0)
2020年3月9日
Less的循环写法与sass循环写法
摘要: 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
阅读(754)
评论(0)
推荐(0)
2019年8月21日
canvas 初试小demo
摘要: 一个简单的圆运动canvas
阅读全文
posted @ 2019-08-21 14:18 微木Vmumu
阅读(302)
评论(0)
推荐(0)
2019年7月25日
vscode快捷创建vue文件模板
摘要: 输入vue,选择编辑vue.json,插入json对象
阅读全文
posted @ 2019-07-25 09:14 微木Vmumu
阅读(4218)
评论(0)
推荐(0)
2019年5月10日
实现DOM classList的add、remove、toggle
摘要: 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
阅读(858)
评论(0)
推荐(0)
2019年2月12日
MariaDB 5.5 到 10.2
摘要: 博客本地数据库版本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
阅读(394)
评论(0)
推荐(0)
下一页
公告