摘要: 1.安装环境信息 VMware Workstation版本 VMware® Workstation 15 Pro 15.5.6 build-16341506 操作系统版本 Windows 10 企业版 LTSC 处理器:Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz 阅读全文
posted @ 2020-12-07 14:42 半糖也甜吖 阅读(1266) 评论(0) 推荐(0) 编辑
摘要: 1.说明 此命令行开启代理只针对当前命令行,关闭即时效,再次开启需重新设置,如需永久设置,请使用命令行代理软件。如proxy_go等。 2.前提条件 需要在本地开启代理服务器 可使用vmess,trojan等。 3.设置 Mac: export http_proxy=127.0.0.1:1234 e 阅读全文
posted @ 2020-12-07 10:02 半糖也甜吖 阅读(766) 评论(0) 推荐(0) 编辑
摘要: 安装node 1.curl --silent --location https://rpm.nodesource.com/setup_12.x | sudo bash - 2.yum install -y nodejs 3.node -v 多版本管理 1.进入https://github.com/n 阅读全文
posted @ 2020-11-25 14:32 半糖也甜吖 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: 1.定义collapseTransition .js 1 const elTransition = '0.3s height ease-in-out, 0.3s padding-top ease-in-out, 0.3s padding-bottom ease-in-out'; 2 const Tr 阅读全文
posted @ 2020-10-14 17:15 半糖也甜吖 阅读(1114) 评论(0) 推荐(0) 编辑
摘要: 1.新建xxx.js 定义策略对象和策略类 1 /*策略对象*/ 2 const strategies = { 3 // 是否为空 4 isNonEmpty(value, errorMsg) { 5 return value '' ? errorMsg : void 0; 6 }, 7 // 最小长 阅读全文
posted @ 2020-10-14 17:04 半糖也甜吖 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 1.在apple store中搜索下载Scriptable 2.打开Scriptable 3.点击右上角 "+",进入添加界面 4.在空白区域粘贴代码,点击右下角运行按钮可以试运行 5.长按脚本,选择rename可以进行重命名。 6.在桌面添加小组件 a.选择scriptable组件 b.长按添加的 阅读全文
posted @ 2020-10-09 09:39 半糖也甜吖 阅读(7624) 评论(0) 推荐(0) 编辑
摘要: 1 let widget = await createWidget(); 2 if (!config.runsInWidget) { 3 await widget.presentLarge(); 4 } 5 Script.setWidget(widget); 6 Script.complete(); 阅读全文
posted @ 2020-10-09 09:05 半糖也甜吖 阅读(1446) 评论(0) 推荐(0) 编辑
摘要: 查看包名adb shell dumpsys window w | findstr \/ | findstr name= 基本用法adb shell monkey -p com.shanghai.test -v 10000 输出日志adb shell monkey -p com.shanghai.te 阅读全文
posted @ 2020-09-23 15:15 半糖也甜吖 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1.获取当前dom相对于document的偏移量 1 const getOffset = el => { 2 console.log(el); 3 const {top, left} = el.getBoundingClientRect(); 4 const {scrollTop, scrollLe 阅读全文
posted @ 2020-08-31 16:07 半糖也甜吖 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 1.vscode 版本: 版本: 1.56.2 (user setup) 在最新版本中,vscode增加了账户登录选项,实现了配置文件保存在账户中,在更换电脑或者端时,可以直接登录自己账号获取云端vscode配置。 2.配置保存路径 github 3.setting.json { // 对应文件类型 阅读全文
posted @ 2020-06-02 17:38 半糖也甜吖 阅读(2123) 评论(1) 推荐(0) 编辑