摘要: 遇到问题: 前端访问页面 http://earth.com/index.html的时候,页面打开空白。浏览器控制台里看到index.html加载 http://earth.com/static/a.js 时报404错误。index.html在服务器里对应目录是public文件夹,static/a.j 阅读全文
posted @ 2023-12-25 15:40 心意12 阅读(268) 评论(0) 推荐(0)
摘要: chrome上报错如下: 原因:安装React Developer Tools导致的,关闭这个插件就行 阅读全文
posted @ 2023-12-22 15:04 心意12 阅读(112) 评论(0) 推荐(0)
摘要: 在 Node.js 中,每个文件都被视为一个单独的模块。 CommonJS 模块系统在 module 核心模块中实现。 启用 Node.js 有两个模块系统:CommonJS 模块和 ECMAScript 模块。 默认情况下,Node.js 会将以下内容视为 CommonJS 模块: 扩展名为 .c 阅读全文
posted @ 2023-12-11 10:51 心意12 阅读(143) 评论(0) 推荐(0)
摘要: CommonJS(简称cjs),为node.js打包javaScript的原始方法,使用require和imports(module.exports)语句定义模块 ECMAScript模块(简称esm),是ecma262标准下封装的JavaScript代码重用的官方标准格式。使用import和exp 阅读全文
posted @ 2023-11-28 18:50 心意12 阅读(417) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-11-27 14:00 心意12 阅读(16) 评论(0) 推荐(0)
摘要: 第一步:安装插件koroFileHeader。如下图1 第二步:配置setting。将下面的json代码配置到setting中。 "fileheader.configObj": { "createFileTime": true, "language": { "languagetest": { "he 阅读全文
posted @ 2023-11-17 19:40 心意12 阅读(588) 评论(0) 推荐(0)
摘要: 按照官网安装vue-element-admin步骤: 1. git clone 2. npm install: 安装依赖包时报错 报错后进行原因排查,排查过程中,遇到过的报错情况: c:\program files\git\mingw64\bin\git.exe ls-remote -h -t ss 阅读全文
posted @ 2023-06-28 16:55 心意12 阅读(609) 评论(0) 推荐(0)
摘要: vscode中terminal(终端),打开git bash框,执行cd ~ 创建.bash_profile文件,文件内容设置如下: alias gl='git pull' alias gaa='git add --all' alias gb = 'git branch' alias gbD='gi 阅读全文
posted @ 2023-03-09 14:03 心意12 阅读(107) 评论(0) 推荐(0)
摘要: 1. 打开注册表 2. 删除 计算机\HKEY_CURRENT_USER\SOFTWARE\Scooter Software\Beyond Compare 4 中的CacheID。时间就重置为30天了 方式二 新建一个reset.bat文件,文件内容如下: reg delete "HKEY_CURR 阅读全文
posted @ 2022-08-18 22:30 心意12 阅读(153) 评论(0) 推荐(0)
摘要: 实现:对象数组根据多个属性排序 原理:数组排序方法array.sort() 例子: let a = [{ name : "小李", age:"24", city:"北京" },{ name : "小李2", age:"26", city:"浙江" },{ name : "小李1", age:"25" 阅读全文
posted @ 2021-11-29 15:52 心意12 阅读(460) 评论(0) 推荐(0)