2020年8月10日
摘要: sudo rm -rf node_modules package-lock.json && npm install 阅读全文
posted @ 2020-08-10 14:45 写最骚的代码 阅读(555) 评论(0) 推荐(0) 编辑
  2020年8月7日
摘要: let number = 2323234355.99; function f(num){ const reg = /\B(?=(\d{3})+$)/g, n = num.toString().split('.'); return `${n[0].replace(reg, ',')}.${n[1]}` 阅读全文
posted @ 2020-08-07 11:59 写最骚的代码 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 我的电脑是2018款mackbookPro出现的这种情况 在配备 T2 芯片的电脑上重置 SMC 配备 T2 芯片的笔记本电脑 重置 SMC 之前,请尝试以下步骤: 将 Mac 关机。 按住电源按钮 10 秒钟,然后松开这个按钮。 等待几秒钟,然后按下电源按钮以将 Mac 开机。 如果问题仍然存在, 阅读全文
posted @ 2020-08-07 10:24 写最骚的代码 阅读(1945) 评论(0) 推荐(0) 编辑
  2020年8月6日
摘要: let objArr = [{ questionAnswer: "喜欢", AnswerKey: "C" }, { questionAnswer: "不喜欢", AnswerKey: "A" }, { questionAnswer: "非常喜欢", AnswerKey: "D" }, { quest 阅读全文
posted @ 2020-08-06 14:58 写最骚的代码 阅读(262) 评论(0) 推荐(0) 编辑
  2020年7月28日
摘要: 第一步: xcode-select --install 报错: xcode-select: error: command line tools are already installed, use "Software Update" to install updates 第二步: sudo rm - 阅读全文
posted @ 2020-07-28 09:54 写最骚的代码 阅读(3027) 评论(0) 推荐(1) 编辑
  2020年7月23日
摘要: vue项目运行出错: Error: Missing binding my-world/node_modules/node-sass/vendor/darwin-x64-72/binding.node Node Sass could not find a binding for your curren 阅读全文
posted @ 2020-07-23 15:10 写最骚的代码 阅读(1748) 评论(0) 推荐(0) 编辑
  2020年7月8日
摘要: <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javascript"> // 下面这行和上面的script一起使用 获取真实IP地址 document.write(returnCityS 阅读全文
posted @ 2020-07-08 14:26 写最骚的代码 阅读(28685) 评论(0) 推荐(0) 编辑
  2020年4月3日
摘要: 1.下载远程仓库1 git clone 远程仓库地址 2.下载远程仓库2 git remote add mySecond + 第二个远程仓库地址 3.把mySecond远程仓库数据拉取到本地 git fetch mySecond 4.在本地创建local分支并拉取mySecond代码到local,自 阅读全文
posted @ 2020-04-03 10:00 写最骚的代码 阅读(8035) 评论(0) 推荐(1) 编辑
  2019年11月20日
摘要: 1、首先要依赖微信js-sdk npm install weixin-js-sdk --save 2、封装代码 import wx from "weixin-js-sdk"; export function wexinPay(data) { return new Promise((resolve, 阅读全文
posted @ 2019-11-20 18:41 写最骚的代码 阅读(2108) 评论(0) 推荐(0) 编辑