摘要: blob 创建方式 字符串 let myBlobParts = ['<html><h2>Hello Leo</h2></html>']; // 一个包含DOMString的数组 let myBlob = new Blob(myBlobParts, {type : 'text/html', endin 阅读全文
posted @ 2022-05-26 21:03 vx_guanchaoguo0 阅读(389) 评论(0) 推荐(0) 编辑
摘要: FormData 、Blob、File、FileReader、ArrayBuffer、URL、URLSearchPara FormData FormData是Ajax 2.0对象用以将数据编译成键值对,以便于XMLHttpRequest来发送数据。XMLHttpRequest Level 2提供的一 阅读全文
posted @ 2022-05-26 20:40 vx_guanchaoguo0 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 在浏览器中可以使用的协议 http/http file ftp ws webrtc mms thunder data url 阅读全文
posted @ 2022-05-26 20:23 vx_guanchaoguo0 阅读(57) 评论(0) 推荐(0) 编辑
摘要: golang微服务组件 gokit 服务三层架构解析 Transport 协议平面 Endpoint 控制平面 Service 数据平面 脚手架 kitcli go get -u google.golang.org/grpc go get -u github.com/golang/protobuf/ 阅读全文
posted @ 2022-05-26 19:57 vx_guanchaoguo0 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 使用context.Context 上下文去全局数据 metadata type MD map[string][]string //第一种方式 md := metadata.New(map[string]string{"key1": "val1", "key2": "val2"}) //第二种方式 阅读全文
posted @ 2022-05-26 18:49 vx_guanchaoguo0 阅读(135) 评论(0) 推荐(0) 编辑
摘要: selfl.html 点击查看代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="vie 阅读全文
posted @ 2022-05-26 00:17 vx_guanchaoguo0 阅读(304) 评论(0) 推荐(0) 编辑