2022年9月16日
摘要: 原因: mockjs导致全局XMLHttpRequest被覆盖。 解决方案: mockProdServer.js function extendXMLHttpRequestUpload() { const xhr = new window._XMLHttpRequest(); window.XMLH 阅读全文
posted @ 2022-09-16 15:03 吾乃青帝 阅读(142) 评论(0) 推荐(0) 编辑
  2018年12月20日
摘要: 文件结构: tsconfig.json app1.ts app2.ts 编译后,报错:Error: Cannot find module '@folder2/app2'。 这段代码在typeScript并没有检测到错误,但编译为javascript后,路径并没有映射过去。javascript能访问的 阅读全文
posted @ 2018-12-20 15:01 吾乃青帝 阅读(3199) 评论(1) 推荐(0) 编辑
摘要: 解决方案:把镜像地址改为阿里云镜像就可以了。 setting - Daemon - Registry mirrors, 文本框内填入:https://xaiqlt1z.mirror.aliyuncs.com。如图: 阅读全文
posted @ 2018-12-20 09:38 吾乃青帝 阅读(4465) 评论(0) 推荐(0) 编辑
  2018年9月7日
摘要: 前提: 在国内环境,因为某种原因,使用docker下载image非常缓慢。因此,为了更好的下载效率,需要使用代理。 所需条件: 1. VPS(offshore) 2. ss 遇到的坑: 这样设置后,发现并没有生效。理由如下: 提示连接被拒绝。 原因: docker MobyLinuxVM并不与本地1 阅读全文
posted @ 2018-09-07 14:53 吾乃青帝 阅读(5732) 评论(0) 推荐(0) 编辑
  2018年8月31日
摘要: 编辑.bashrc文件 在尾部插入以下代码 立即生效 I usually use desert. So I open vim, then enter :color desert and enter. To have the color scheme by default every time you 阅读全文
posted @ 2018-08-31 13:38 吾乃青帝 阅读(309) 评论(0) 推荐(0) 编辑
  2018年8月10日
摘要: 执行如下: 接连出现如下提示 Generating public/private rsa key pair.Enter file in which to save the key (/home/Jacquin/.ssh/id_rsa): 按Enter/home/Jacquin/.ssh/id_rsa 阅读全文
posted @ 2018-08-10 14:17 吾乃青帝 阅读(836) 评论(0) 推荐(0) 编辑
摘要: VPS从16.04换到18.04,发现vim命令找不到了,只有vi,界面一般,方向键还不对。 重新安装vim就能解决问题: 阅读全文
posted @ 2018-08-10 10:39 吾乃青帝 阅读(7260) 评论(0) 推荐(0) 编辑
  2018年5月31日
摘要: 1. 临时性。当前terminal窗口,关闭窗口后失效 2. 永久性。用户级别 打开.profile文件 编辑.profile文件: 立即生效: 3. 永久性。系统级别 打开.profile文件 编辑.profile文件: 立即生效: 4. 新增PATH 将$VARNAME添加到environmen 阅读全文
posted @ 2018-05-31 10:50 吾乃青帝 阅读(174) 评论(0) 推荐(0) 编辑