摘要: [VueJsDev] 目录列表 https://www.cnblogs.com/pengchenggang/p/17037320.html 开发前小知识 ::: details 目录 [] ::: 作为开发 Github 是要必须的学习的,那么第一步就是要可以访问。 ::: tip 小提示 很多时候 阅读全文
posted @ 2023-01-09 16:53 彭成刚 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 撰写日期:2020-07-23 撰稿人:彭成刚 转载需经本人同意。 Vue前端项目架构梳理 后期可以将TypeScript加入到项目来,对参数的数据类型进行更严格的校验。 现在主流就 Vue 和 React,Angular也可以看看,因为你在看React+TS的时候,我觉得内容量和坑的个数就挺多的。 阅读全文
posted @ 2020-07-21 16:38 彭成刚 阅读(4120) 评论(1) 推荐(1) 编辑
摘要: cloudflare workers 每日免费限制 超出流量自动关闭 - 失败模式 改为 失败时自动关闭(阻止) 位置在 Workers 和 Pages - 相应的workers - 设置 - 函数 - 更改失败模式 改为 失败时自动关闭(阻止) 这个设置,网上竟然没有人说,这么重要的事情,应该要设 阅读全文
posted @ 2024-08-28 17:18 彭成刚 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 我这里echarts 用的 4.5.0 官网 https://echarts.apache.org/v4/examples/zh/index.html#chart-type-map 获取地图json数据工具 https://datav.aliyun.com/portal/school/atlas/a 阅读全文
posted @ 2024-08-26 14:05 彭成刚 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 阿里巴巴 普惠体 (字体推荐) 字体下载: https://www.zitijia.com/i/250417369606802489.html 阅读全文
posted @ 2024-08-21 09:30 彭成刚 阅读(5) 评论(0) 推荐(0) 编辑
摘要: eslint 当前文件 不校验 文件第一行 /* eslint-disable */ 这个需求主要是其他第3方库 进来的时候,校验规则不一样,所以就不进行校验了。 阅读全文
posted @ 2024-08-20 08:47 彭成刚 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 欧路词典 查询英语单词方式 - 划词翻译 - 划词后直接显示解释窗口 - 再次单击左键窗口消失 现在这种查词的方式,算是最方便的一种。 双击一个单词,自动发音,然后弹出小窗口。 再次单击鼠标左键,小窗口消失,继续看文章。 阅读全文
posted @ 2024-08-09 16:06 彭成刚 阅读(3) 评论(0) 推荐(0) 编辑
摘要: camelCase: twoWords capitalCase: Two Words constantCase: TWO_WORDS dotCase: two.words kebabCase: two-words noCase: two words pascalCase: TwoWords pasc 阅读全文
posted @ 2024-08-08 10:21 彭成刚 阅读(3) 评论(0) 推荐(0) 编辑
摘要: es6-string-html vscode插件 js里面template的高亮插件 无构建vue使用 这个插件可以让js里面的template的字符串高亮,前面加 /*html*/ Refference: 无构建和打包,浏览器直接吃上Vue全家桶? https://juejin.cn/post/7 阅读全文
posted @ 2024-08-07 09:31 彭成刚 阅读(4) 评论(0) 推荐(0) 编辑
摘要: wordsinasentence.com 单词英英翻译 17987个 这个网站的英英单词翻译非常不错,汇总成markdown,方便查询 官方在线查询地址 https://wordsinasentence.com/vocabulary-word-list/ 由于直接贴上来,页面就崩了,所以改为附件了, 阅读全文
posted @ 2024-08-05 13:33 彭成刚 阅读(4) 评论(0) 推荐(0) 编辑
摘要: uniapp 网页打包成app(使用webview) https://blog.csdn.net/m0_58135258/article/details/130760777 在static目录下放web目录,然后文件是 pages/index/index.vue <template> <view c 阅读全文
posted @ 2024-08-01 17:53 彭成刚 阅读(6) 评论(0) 推荐(0) 编辑
摘要: save-all-resources https://chromewebstore.google.com/detail/save-all-resources/abpdnfjocnmdomablahdcfnoggeeiedb 使用方法: F12 右边选择 ResourceSaver 点击右边的 Sav 阅读全文
posted @ 2024-08-01 09:44 彭成刚 阅读(38) 评论(0) 推荐(0) 编辑
摘要: // 导出一个包含多个函数的对象 export const aaa = { abc: function() { console.log('This is abc function'); }, def: function() { console.log('This is def function'); 阅读全文
posted @ 2024-07-30 09:49 彭成刚 阅读(4) 评论(0) 推荐(0) 编辑
摘要: data:action/json,{"actions":[{"highlight":{"cells":["82"]}}]} 82就是组件的id 编辑数据可以查看id,默认是比较复杂的id,可以双击修改id 右键编辑链接,可以粘贴跳转代码 阅读全文
posted @ 2024-07-29 16:20 彭成刚 阅读(10) 评论(0) 推荐(0) 编辑
摘要: rembg 去除背景的 python工具 服务启动: rembg s --host 0.0.0.0 --port 7000 --log_level info https://github.com/danielgatis/rembg/tree/main 阅读全文
posted @ 2024-07-26 09:58 彭成刚 阅读(4) 评论(0) 推荐(0) 编辑
摘要: github cdn Jsdelivr 加速下载 举例下载: https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_nvidia.7z 我们将https://github 阅读全文
posted @ 2024-07-26 09:57 彭成刚 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 今天看了一个sd的融合字的教程,走了一遍流程,做一个笔记记录下来。 教程 【AI绘画】一分钟教你利用AI一键生成艺术字!!简单易懂,小白易上手!! https://www.bilibili.com/video/BV12t421a7mf/ 软件 我用的这个是 绘世2.8.5 https://www.a 阅读全文
posted @ 2024-07-24 16:13 彭成刚 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 分屏软件 MaxTo - 将一个屏幕分成左右两个,软件最大化自动到相应区域 下载之家 有一个下载,不过软件版本有点老,能支持到win10,我电脑是win11,vscode最大化以后,高度对不上了。 https://www.downza.cn/soft/213899.html 上他们的官网 下了个最新 阅读全文
posted @ 2024-07-18 15:53 彭成刚 阅读(7) 评论(0) 推荐(0) 编辑
摘要: clash for windows 设置启动代理后,设置某个域名直连 不走代理 需求 开启代理有,国内有个网站就打不开,然后国外的网站可以打开,来回的还需要开关代理,很是麻烦。 配置 配置- 预处理配置 设置 开启代理后(这个废弃了,因为这个是先走代理,然后再绕过,一但代理timeout,所有都崩) 阅读全文
posted @ 2024-07-12 10:29 彭成刚 阅读(2) 评论(0) 推荐(0) 编辑
摘要: draw.io 放大字号快捷键 ctrl+shift+] 默认字体字号,改完了,也不好用。每次新建文件就又回12号字了, 这个点上文字,反正是能放大,不用鼠标了 阅读全文
posted @ 2024-07-10 13:50 彭成刚 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Puppeteer node 瞬秒安装 亲测可用! Puppeteer 最难得不是如何自动化,而是安装,这个包你就装不上,后面还看什么~~ 今天看了一篇文章,非常好,走了一遍流程,瞬秒能用,赶紧放上来 建立目录 myPuppeteer npm init -y npm i puppeteer --ig 阅读全文
posted @ 2024-07-05 16:47 彭成刚 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 路由跟踪命令 tracert www.zzcn.net https://iplark.com/117.8.169.134 阅读全文
posted @ 2024-07-04 15:03 彭成刚 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Klein综合词源字典【可检索版】.pdf https://pan.quark.cn/s/58b49aa21e16#/list/share 缩写列表 特别全 阅读全文
posted @ 2024-06-26 09:43 彭成刚 阅读(17) 评论(0) 推荐(0) 编辑
摘要: display: contents 当前节点不渲染,子节点渲染(display: none 整个当前节点不显示)相当牛的css特性 简单举例: flex布局,对子元素影响,但是这个时候套了一层,把这个层设置 display: contents 里面的就提升了一级。 简单说就是包了一层vue文件,还能 阅读全文
posted @ 2024-06-06 16:22 彭成刚 阅读(10) 评论(0) 推荐(0) 编辑
摘要: window 拦截器 虽然暂时没想到干什么 fakeWindow const varBox = {}; const fakeWindow = new Proxy(window, { get(target, key) { // 敏感调用检查 return varBox[key] || window[k 阅读全文
posted @ 2024-06-06 16:09 彭成刚 阅读(3) 评论(0) 推荐(0) 编辑
摘要: .eslintrc-auto-import.json 自动导入 依赖 入ref reactive 等 这篇文章比较详细介绍了这个,但是这种全局导入,其实也是酌情处理。 Reference: vite自动按需导入 https://blog.csdn.net/webbirds/article/detai 阅读全文
posted @ 2024-06-06 14:21 彭成刚 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 全局 type类型的寻找 typescript 类型 - fabric.Canvas declare type ExtCanvas = fabric.Canvas & { isDragging: boolean; lastPosX: number; lastPosY: number; }; 这个代码 阅读全文
posted @ 2024-06-06 11:57 彭成刚 阅读(7) 评论(0) 推荐(0) 编辑
摘要: tapPromise 函数 (绑定hooks方法)tapable 库,创建自定义插件的库 刚看到了一个插件的use函数 // 引入组件 use(plugin: IPluginClass, options?: IPluginOption) { if (this._checkPlugin(plugin) 阅读全文
posted @ 2024-06-06 10:57 彭成刚 阅读(4) 评论(0) 推荐(0) 编辑
摘要: provide inject vue3 父子组件 传参方式 当子组件有30个的时候,这个就有优势了,在父组件provide一次,在子组件里面inject这个变量(实际上是通过hooks提供,也可以是个函数)。 下面看下截图 父组件: 子组件: 父组件provide 子组件在父组件,就不用一堆prop 阅读全文
posted @ 2024-06-06 09:44 彭成刚 阅读(5) 评论(0) 推荐(0) 编辑
摘要: workspaces - package.json 依赖本地另一个库 今天溜达一个库 图形编辑器 https://github.com/nihaojob/vue-fabric-editor/blob/main/package.json 里面有一个依赖,是本地的 Reference:(对于 works 阅读全文
posted @ 2024-06-05 10:54 彭成刚 阅读(5) 评论(0) 推荐(0) 编辑
摘要: vue3 vite 脚手架生成项目 prettier 自动格式化失败 vscode插件 Vue - Official 解决方案 问题 以前写的都是vue2的项目,自动格式化都用的vetur,都设置好了。 现在新弄了个vue3的项目,脚手架起的vite vue3,搞个代码格式化,发现prettier没 阅读全文
posted @ 2024-05-31 14:44 彭成刚 阅读(268) 评论(0) 推荐(0) 编辑
摘要: vite config proxy 代理 外网接口 配置单写法 之前一个小坑 target: 'http://yourdomain/', 之前域名后面我写子目录了,导致一直不好使。 在这之前,用nginx 配置,没配置出来~,所以搞成vite配置走起。。 fix: nginx使用方法不对,应该是ng 阅读全文
posted @ 2024-05-24 17:27 彭成刚 阅读(85) 评论(0) 推荐(0) 编辑
摘要: unplugin-auto-import 自动引入依赖库 神器 https://github.com/unplugin/unplugin-auto-import 阅读全文
posted @ 2024-05-21 11:13 彭成刚 阅读(13) 评论(0) 推荐(0) 编辑
摘要: vue3 component 动态组件 vue3的setup默认没有挂载组件了,因为自动挂载了,所以如果要做动态组件,就挂载到全局,在main.ts里面挂载,或其他地方也行。 <component :is="item.chartConfig.chartKey" :id="item.id" :char 阅读全文
posted @ 2024-05-20 15:43 彭成刚 阅读(507) 评论(0) 推荐(0) 编辑
摘要: console.time / console.timeEnd 另一种写法 (V8执行时间 and 渲染页面时间) <script> let prevTime = Date.now() const total = 100000 let ul = document.getElementById('con 阅读全文
posted @ 2024-05-16 14:35 彭成刚 阅读(7) 评论(0) 推荐(0) 编辑
摘要: ;[a,b,c].forEach(item => {}) 分号的重要性 ;[] 神奇的开头分号 去掉分号就会报错,很神奇。 其实是编译器将上一句和 这个数组的方括号拼接了,导致报错。所以前面加一个分号,有效保护了,当前语句是一个新语句。 Reference 数组无法使用 forEach() 方法 - 阅读全文
posted @ 2024-05-16 09:37 彭成刚 阅读(7) 评论(0) 推荐(0) 编辑
摘要: idea 2023 搜索显示条数 Maximum number of results to show in Find in Files/Show Usages preview 阅读全文
posted @ 2024-05-15 10:13 彭成刚 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 搞个.reg运行下 Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\GameDVR] “AppCaptureEnabled”=dword:0000000 阅读全文
posted @ 2024-05-14 09:27 彭成刚 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 别人的代码,这一通找是哪里的原因!! 哎 v-for 里面不要写ref="myRef", 要写成 :ref="'myRef'+item.name" 否则调用的时候 this.$refs.myRef,就会数据错误 - vue2 阅读全文
posted @ 2024-05-10 17:30 彭成刚 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Smart IME 智能切换中文与英文输入法 - vscode插件推荐 IDEA 插件 Smart Input VSCode 插件 Smart IME 插件 Smart IME 本文是针对vscode插件,正常安装 Smart IME,就自动安装另外2个插件了 Smart IME 需要安装 IME 阅读全文
posted @ 2024-04-30 13:50 彭成刚 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 考试卷子快速去白底 - ps - Photoshop 1.透视裁剪工具 裁剪下卷子四周 2.色阶ctrl+L 右边第3个吸管 选择后点卷面 3.图层ctrl+J复制一层+正片叠底 上面的那个层 正片叠底 这样文字更清晰 阅读全文
posted @ 2024-04-28 16:00 彭成刚 阅读(46) 评论(0) 推荐(0) 编辑
摘要: vscode 快捷件的配置文件地址 C:\Users\Reciter\AppData\Roaming\Code\User\keybindings.json 更改快捷键冲突 我要把 Quick Go To Selected File Path 插件的快捷键 Ctrl + E,换成 F12, 插件文章: 阅读全文
posted @ 2024-04-28 15:26 彭成刚 阅读(25) 评论(0) 推荐(0) 编辑