![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
利来利往
幽默,诚实,守时,守信,适应能力强。
展开
-
react-scripts startsh: react-scripts: command not found
sh: react-scripts: command not found after running npm start转载 2021-08-26 20:08:00 · 2874 阅读 · 0 评论 -
npm ERR! code ELIFECYCLE
1.npm cache clean --force2.rm -rf node_modules3.npm install4.npm start参考How to solve npm error “npm ERR! code ELIFECYCLE”转载 2021-08-26 19:46:47 · 215 阅读 · 1 评论 -
js 使用 Fetch https://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API/Using_Fetch
function FGUtilStringSplit(str,split_char) ------------------------------------------------------- -- 参数:待分割的字符串,分割字符 -- 返回:子串表.(含有空串) local sub_str_tab = {}; while (true) do local pos =转载 2021-08-18 19:14:53 · 470 阅读 · 0 评论 -
js then()和Promise的使用 https://www.jianshu.com/p/523a7330f2f2
for i = 1, 10 do repeat if i == 5 then break end print(i) until trueend转载 2021-08-18 19:13:45 · 231 阅读 · 0 评论 -
async和await让代码更清晰
fetch('coffee.jpg').then(response => response.blob()).then(myBlob => { let objectURL = URL.createObjectURL(myBlob); let image = document.createElement('img'); image.src = objectURL; document.body.appendChild(image);}).catch(e => { c.转载 2021-08-18 19:07:19 · 192 阅读 · 0 评论 -
JavaScript
五大JavaScript最流行的IDE,你常用哪个?https://www.sohu.com/a/240291979_100159565WebStorm下载https://www.jetbrains.com/zh-cn/webstorm/download/download-thanks.html?platform=windowsC:\Program Files\JetBrains\WebStorm 2021.1.2怎么开发并发布一个可用的 JavaScript 模块 ?https://zhu..原创 2021-06-22 15:47:10 · 69 阅读 · 0 评论 -
multivisor安装
.h部分代码//红包结构体struct tagRedPacket { tagRedPacket() { ReSet(); } void ReSet() { ZeroMemory(this, sizeof(tagRedPacket)); } LONGLONG lTime; //发红包的时间 WORD wId; //红包id DWORD ...原创 2019-08-16 16:42:06 · 3535 阅读 · 0 评论 -
go gzip 和 js gzip 一致性问题
//zip压缩func (this *UserController) DoZlibCompress(src []byte) []byte { var in bytes.Buffer w := zlib.NewWriter(&in) w.Write(src) w.Close() return in.Bytes()}//zip解压func (this *UserController) DoZlibUnCompress(compressSrc []byte) []byte { b .原创 2021-06-02 17:43:21 · 340 阅读 · 0 评论 -
Go和Node.js base64编码一致性
in := "Good afternoon, or こんにちは" buf := []byte(in) str := base64.StdEncoding.EncodeToString(buf) logger.Debug(str)原创 2021-06-02 16:09:52 · 229 阅读 · 0 评论 -
js 使用pako.js实现gzip的压缩和解压
unzip(b64Data){ var strData = atob(b64Data); // Convert binary string to character-number array var charData = strData.split('').map(function(x){return x.charCodeAt(0);}); // Turn number array into byte-array ...原创 2021-06-01 20:08:59 · 5651 阅读 · 0 评论