安装记录 - nvm,pm2管理node项目 123456cd ~/git clone https://github.com/nvm-sh/nvm.git .nvmcd ~/.nvmgit checkout v0.37.2. nvm.shvim ~/.bashrc 12345# vim 使用教程 https://www.runoob.com/linux/linux-vim.html# 编辑粘贴如下内容,保存退出export NVM_DIR=& 2020-07-15
Hello World Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. 2020-07-07 小记
函数计算(FC)集成Puppeteer 函数计算(FC)集成Puppeteer实战:Serverless化HTML转图片/PDF你想在函数计算(FC)中使用Puppeteer实现HTML转图片/PDF的功能——这是典型的Serverless场景(按需执行、弹性扩缩),但FC默认环境缺少Chrome运行依赖,需要针对性适配。下面以阿里云FC(国内最常用)为例,从环境适配、完整代码、配置优化、避坑点全维度讲解,代码可直接 2019-09-30 学无止境
二维码生成、解析 前端实现二维码的生成(根据输入文本生成二维码)和识别(上传图片解析二维码内容)的功能,基于常用且轻量的前端库来实现,方案简单易上手,无需复杂的构建配置。 实现思路 二维码生成:使用 QRCode.js(轻量、无依赖、兼容性好),通过输入文本内容生成二维码并渲染到页面。 二维码识别:使用 jsQR(纯前端解析二维码,无需后端),通过上传图片,将图片绘制到 Canvas 后解析像素数据,提取二维码内容 2018-08-29 学无止境
window.open 窗口垂直居中 123456789function openWin() { var url = '...'; var name = '在线客服'; var iWidth = 720; var iHeight = 600; var iTop = (window.screen.availHeight - 30 - iHeight) / 2; var iLe 2018-08-08 小记
微信WeixinJSBridge API 有些过时了,参考地址:https://github.com/Tencent/weui/wiki/%E5%BE%AE%E4%BF%A1JSAPI https://www.cnblogs.com/txw1958/p/WeixinJSBridge-api.html 123456789101112131415161718192021222324252627282930313233343536373839 2018-08-08 学无止境