摘要: 1.问题:Mac pro M3 笔记本三指触控翻译失效。期望功能效果如下: 2.设置 阅读全文
posted @ 2024-03-05 14:34 Cynthia娆墨旧染 阅读(10) 评论(0) 推荐(0) 编辑
摘要: html <div class="test" :style="{ '--backgroundColor': backgroundColor }"></div> js css .test { background-color: var(--backgroundColor); } 阅读全文
posted @ 2023-10-25 11:02 Cynthia娆墨旧染 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 一行开头是括号或者方括号的时候,末尾必须要加分号。 一、案例1 错误代码: (() => {console.log(1)})() // 注意这里没有分号 (() => {console.log(2)})() 正确代码: (() => {console.log(1)})(); // 注意这里的分号 ( 阅读全文
posted @ 2023-10-23 13:54 Cynthia娆墨旧染 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-29 14:48 Cynthia娆墨旧染 阅读(7) 评论(0) 推荐(0) 编辑
摘要: npm i @babel/plugin-proposal-optional-chaining --save-dev npm i @babel/plugin-proposal-nullish-coalescing-operator --save-dev npm i rollup-plugin-esbu 阅读全文
posted @ 2023-06-27 10:51 Cynthia娆墨旧染 阅读(995) 评论(0) 推荐(1) 编辑
摘要: 1.创建 2.创建信息 next 点 finish 3.创建好后,项目长这样: 4.配置 maven。如果侧边没有 maven 选项卡 ,参考这篇 https://www.cnblogs.com/cynthia-wuqian/p/17460845.html 5.启动项目 6.修改文件,跑 Hello 阅读全文
posted @ 2023-06-06 16:19 Cynthia娆墨旧染 阅读(126) 评论(0) 推荐(0) 编辑
摘要: (1)按 Shift 键两次,输入 maven (2)选择 “Add Maven Projects” (3)侧边出现 Maven 选项 阅读全文
posted @ 2023-06-06 16:03 Cynthia娆墨旧染 阅读(2815) 评论(0) 推荐(0) 编辑
摘要: 1.在根目录下新建 alias.config.js 文件 'use script' const path = require('path') function resolve(dir) { return path.join(__dirname, dir) } module.exports = { r 阅读全文
posted @ 2023-04-23 17:36 Cynthia娆墨旧染 阅读(164) 评论(0) 推荐(0) 编辑
摘要: vite打包异常,错误信息如下: [vite]: Rollup failed to resolve import "element-plus/es/components" from "node_modules/element-plus/es/index.js". This is most likel 阅读全文
posted @ 2022-08-12 10:30 Cynthia娆墨旧染 阅读(11384) 评论(0) 推荐(2) 编辑
摘要: 问题描述:2022年03月15日,对项目进行 npm i 时,出现 E451 不合法错误码,导致项目 本地启动 和 jenkins打包 失败。错误截图如下: 排查到的原因:vue-cli里,被混入 https://www.npmjs.com/package/peacenotwar 反战内容的 npm 阅读全文
posted @ 2022-03-17 13:44 Cynthia娆墨旧染 阅读(1104) 评论(0) 推荐(0) 编辑
摘要: (1)新建flutter项目 (2)next以后,开始填项目信息 (3)finish以后,打开项目目录,会是以下界面。 (4)run起来 (5)会自动打开chrome,可以看到以下页面 阅读全文
posted @ 2022-01-25 16:27 Cynthia娆墨旧染 阅读(519) 评论(0) 推荐(0) 编辑
摘要: (1)下载最新稳定的flutter的SDK安装包。下载地址https://docs.flutter.dev/development/tools/sdk/releases?tab=macos#macos (2)把安装包flutter_macos_xxx-stable.zip文件,放到自己想放的目录,然 阅读全文
posted @ 2022-01-25 14:44 Cynthia娆墨旧染 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 问题描述:java项目依赖dubbo,需要在本地根目录下创建data目录。但是mac11版本的SIP权限限制,阻止创建,导致项目无法启动。 解决方案: 1.sudo vi /etc/synthetic.conf 2.添加 data /<任意有权限的目录pwd>。注意中间必须用tab隔开,空格无效。例 阅读全文
posted @ 2021-12-08 18:25 Cynthia娆墨旧染 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 解决:vue.config.js里添加 chainWebpack: config => { console.log(config,'chainWebpack'); // 移除 prefetch 插件 config.plugins.delete('prefetch'); // 移除 preload 插 阅读全文
posted @ 2021-12-08 18:23 Cynthia娆墨旧染 阅读(769) 评论(0) 推荐(0) 编辑
摘要: (1)背景介绍:后端某个接口在chrome的95版本下直接failed,但是在Firefox里是好的。经后端排查,请求并未到服务端。经运维排查,没有结果。注意截图中内容(https://wicg.github.io/private-network-access/) (2)处理:打开 chrome:/ 阅读全文
posted @ 2021-11-03 11:05 Cynthia娆墨旧染 阅读(218) 评论(0) 推荐(0) 编辑
摘要: brew install yarn 错误信息如下: $ brew install yarn Error: homebrew-core is a shallow clone. To `brew update` first run: git -C "/usr/local/Homebrew/Library 阅读全文
posted @ 2021-10-13 13:50 Cynthia娆墨旧染 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 1.默认情况下,idea中html的注释是顶格的 2.如何取消顶格?设置自动空格? 打开设置-code style - html - 取消下图中的两个勾选项 3.设置后效果如下: 阅读全文
posted @ 2021-07-05 14:15 Cynthia娆墨旧染 阅读(2019) 评论(0) 推荐(1) 编辑
摘要: 背景介绍: 接口返回了一下这个字段,前端也有这个字段,两个string然后用 比对,结果返回false 定位问题: 1..复制这个值在console里黏贴一下发现:chorme里console的字符后面出现了小红点 2.猜测可能是什么不可见字符 const re = /[\0-\x1F\x7F-\x 阅读全文
posted @ 2021-05-14 10:22 Cynthia娆墨旧染 阅读(431) 评论(0) 推荐(0) 编辑
摘要: npm i --save-dev less less-loader ERROR Failed to compile with 1 error 下午3:26:32 error in ./src/App.vue?vue&type=style&index=0&lang=less& Syntax Error 阅读全文
posted @ 2021-04-23 13:31 Cynthia娆墨旧染 阅读(1074) 评论(0) 推荐(0) 编辑
摘要: 【一】相关软件 【二】js入门基础 【三】常用框架 【四】发展历程 阅读全文
posted @ 2021-04-22 09:53 Cynthia娆墨旧染 阅读(77) 评论(0) 推荐(0) 编辑