会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
winyh
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
28
29
30
31
32
33
34
35
36
···
83
下一页
2020年2月4日
Go Micro 微服务总结
摘要: Go micro 微服务总结 对外提供restful. api 服务的是通过 api 框架或原生写法 -> 直接调用的是 srv 内部调用 是 客户端去访问 服务端 直接 /rpc 调用的时候会绕过 restful. api(但是 micro api 网关是必须启动的,网关也可配置) -> 直接调用
阅读全文
posted @ 2020-02-04 17:00 winyh
阅读(1051)
评论(0)
推荐(0)
2020年1月6日
子组件触发一个函数, 夫组件调用,根据调用状态来执行子组件里的函数
摘要: // 可以使用回调的方法 // 父页面 // 父页面调用组件的html 中 添加事件 @test="test" methods : { test(data, cab) { setTimeout(() => { // 这里使用定时器 模拟执行完方法 console.log(data) // 这是传递过来的参数 用于处理 data++ cab(data) // 将处理完成的数据返回回去 }, 2000
阅读全文
posted @ 2020-01-06 15:05 winyh
阅读(512)
评论(0)
推荐(0)
2019年12月25日
Vue 父级组件传 对象到子组件 不更新
摘要: 子/父组件均 watch 变化, 子 组件接收初始值,然后watch 变化
阅读全文
posted @ 2019-12-25 15:37 winyh
阅读(2478)
评论(0)
推荐(0)
2019年12月22日
coding git push 403 时
摘要: 直接修改 项目目录下的 .git/config url
阅读全文
posted @ 2019-12-22 13:28 winyh
阅读(544)
评论(0)
推荐(0)
2019年12月19日
html2canvas 将网页截图为图片,上传base64 到服务端
摘要: await html2canvas(getById("winyh"), { height:500, allowTaint: true, useCORS: true, }).then((canvas) => { let base64url = canvas.toDataURL('image/jpeg', 1.0 ); // document.body.appendChild(canvas); });
阅读全文
posted @ 2019-12-19 10:09 winyh
阅读(1113)
评论(0)
推荐(0)
上一页
1
···
28
29
30
31
32
33
34
35
36
···
83
下一页