博客园 - 不再犯错
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=174965
2024-03-19T07:57:06Z
不再犯错
https://www.cnblogs.com/luoguixin/
feed.cnblogs.com
https://www.cnblogs.com/luoguixin/p/17994351
mysql 插入更新数据操作 - 不再犯错
1.增加唯一索引,如果已存在则不执行操作 insert ignore into vehicle_tag (字段) VALUES (值) 2.增加唯一索引,如果已存在则更新 INSERT INTO table_name (column1, column2, ...) VALUES (value1, v
2024-01-29T05:45:00Z
2024-01-29T05:45:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】1.增加唯一索引,如果已存在则不执行操作 insert ignore into vehicle_tag (字段) VALUES (值) 2.增加唯一索引,如果已存在则更新 INSERT INTO table_name (column1, column2, ...) VALUES (value1, v <a href="https://www.cnblogs.com/luoguixin/p/17994351" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17357513.html
mac 上安装redis - 不再犯错
苹果电脑可以通过Homebrew来安装Redis。请按照以下步骤进行操作: 1.打开Terminal(终端)应用程序2.输入以下命令以安装Homebrew: ```/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebre
2023-04-26T13:56:00Z
2023-04-26T13:56:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】苹果电脑可以通过Homebrew来安装Redis。请按照以下步骤进行操作: 1.打开Terminal(终端)应用程序2.输入以下命令以安装Homebrew: ```/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebre <a href="https://www.cnblogs.com/luoguixin/p/17357513.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17326534.html
使用egg-socket.io 搭建socket 服务 - 不再犯错
1.后台 安装 egg-socket.io npm i egg-socket.io --save 开启插件 // {app_root}/config/plugin.js exports.io = { enable: true, package: 'egg-socket.io', }; 配置 // {
2023-04-17T09:22:00Z
2023-04-17T09:22:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】1.后台 安装 egg-socket.io npm i egg-socket.io --save 开启插件 // {app_root}/config/plugin.js exports.io = { enable: true, package: 'egg-socket.io', }; 配置 // { <a href="https://www.cnblogs.com/luoguixin/p/17326534.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17284610.html
JS宏任务和微任务 - 不再犯错
微任务=>DOM渲染=>宏任务 setTimeout(function(){ console.log("定时任务") }) new Promise((resolve)=>{ console.log("1 promise 1") //同步 resolve(); }).then(()=>{ consol
2023-04-03T13:56:00Z
2023-04-03T13:56:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】微任务=>DOM渲染=>宏任务 setTimeout(function(){ console.log("定时任务") }) new Promise((resolve)=>{ console.log("1 promise 1") //同步 resolve(); }).then(()=>{ consol <a href="https://www.cnblogs.com/luoguixin/p/17284610.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17250251.html
AI编码工具Cursor初体验 - 不再犯错
最近有一个编码工具很火,名叫Cursor,它是基于GPT-4的并且目前是免费使用的一个情况。周末刚好有空也体验了一把,厉害,是真厉害,今天这篇文章就是关于我如何让Cursor来帮我写一个官网页面。cursor官网地址在这cursor.so Cursor如何使用 打开Cursor,我们看到 Type
2023-03-24T01:16:00Z
2023-03-24T01:16:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】最近有一个编码工具很火,名叫Cursor,它是基于GPT-4的并且目前是免费使用的一个情况。周末刚好有空也体验了一把,厉害,是真厉害,今天这篇文章就是关于我如何让Cursor来帮我写一个官网页面。cursor官网地址在这cursor.so Cursor如何使用 打开Cursor,我们看到 Type <a href="https://www.cnblogs.com/luoguixin/p/17250251.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17222364.html
使用patch-package定制node_modules 中的依赖包 - 不再犯错
背景:首先,需求是这样,Vue项目中使用的是iview第三方UI库,要修改组件DatePicker中默认选中的当日的日期(如下图),实现无论在哪个时区,均显示中国的日期 由于,iview提供的api中并没有可以设置当前选中的日期的参数,而是默认取的new Date(),也就是当前系统的时间,所以这个
2023-03-16T06:09:00Z
2023-03-16T06:09:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】背景:首先,需求是这样,Vue项目中使用的是iview第三方UI库,要修改组件DatePicker中默认选中的当日的日期(如下图),实现无论在哪个时区,均显示中国的日期 由于,iview提供的api中并没有可以设置当前选中的日期的参数,而是默认取的new Date(),也就是当前系统的时间,所以这个 <a href="https://www.cnblogs.com/luoguixin/p/17222364.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17213816.html
vue-cli3 前端监控 - 不再犯错
badjs-report sentry
2023-03-14T01:40:00Z
2023-03-14T01:40:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】badjs-report sentry <a href="https://www.cnblogs.com/luoguixin/p/17213816.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17168103.html
TCP-三次握手和四次挥手简单理解 - 不再犯错
三次握手(three-way handshaking) 1.背景:TCP位于传输层,作用是提供可靠的字节流服务,为了准确无误地将数据送达目的地,TCP协议采纳三次握手策略。 2.原理: 1)发送端首先发送一个带有SYN(synchronize)标志地数据包给接收方。 2)接收方接收后,回传一个带有S
2023-03-01T06:36:00Z
2023-03-01T06:36:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】三次握手(three-way handshaking) 1.背景:TCP位于传输层,作用是提供可靠的字节流服务,为了准确无误地将数据送达目的地,TCP协议采纳三次握手策略。 2.原理: 1)发送端首先发送一个带有SYN(synchronize)标志地数据包给接收方。 2)接收方接收后,回传一个带有S <a href="https://www.cnblogs.com/luoguixin/p/17168103.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17143362.html
postgre查询最大连接数/当前连接数/用户最大连接数相关设置 - 不再犯错
--最大连接数show max_connections; --获取当前实例的空闲连接数select count(1) from pg_stat_activity where state = 'idle'; --数据库连接日志select * from pg_stat_activity ; 最大连接数
2023-02-22T02:09:00Z
2023-02-22T02:09:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】--最大连接数show max_connections; --获取当前实例的空闲连接数select count(1) from pg_stat_activity where state = 'idle'; --数据库连接日志select * from pg_stat_activity ; 最大连接数 <a href="https://www.cnblogs.com/luoguixin/p/17143362.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17127645.html
uniapp中尺寸单位rpx的使用 - 不再犯错
简单理解rpx 750rpx就是屏幕最大宽度,那你的样式宽度绝对不能超过750rpx, 一般设计稿都是750px的标准,但有时候也不是,如 这个原型的宽度就是563px,反正很不对劲 图一是有计算公式的,自己算那就太蠢了 563/750 = 0.75 然后你写样式的时候就会自动帮你转换
2023-02-16T09:40:00Z
2023-02-16T09:40:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】简单理解rpx 750rpx就是屏幕最大宽度,那你的样式宽度绝对不能超过750rpx, 一般设计稿都是750px的标准,但有时候也不是,如 这个原型的宽度就是563px,反正很不对劲 图一是有计算公式的,自己算那就太蠢了 563/750 = 0.75 然后你写样式的时候就会自动帮你转换 <a href="https://www.cnblogs.com/luoguixin/p/17127645.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17126051.html
flex - 不再犯错
2023-02-16T03:15:00Z
2023-02-16T03:15:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】 <a href="https://www.cnblogs.com/luoguixin/p/17126051.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17124300.html
vue2组件懒加载(Vue Lazy Component ) - 不再犯错
1.介绍:是vue组件懒加载的预估插件组件。支持组件组件延时加载, 加载真实组件前展示骨架组件,提高用户体验,真实组件代码分包异步加载 // 安装 npm install @xunlei/vue-lazy-component // 使用方式一 // main.js文件中全局注册使用 import V
2023-02-15T10:44:00Z
2023-02-15T10:44:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】1.介绍:是vue组件懒加载的预估插件组件。支持组件组件延时加载, 加载真实组件前展示骨架组件,提高用户体验,真实组件代码分包异步加载 // 安装 npm install @xunlei/vue-lazy-component // 使用方式一 // main.js文件中全局注册使用 import V <a href="https://www.cnblogs.com/luoguixin/p/17124300.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17122824.html
Vue中 provide、inject 详解及使用 - 不再犯错
Vue中 常见的组件通信方式可分为三类 父子通信 父向子传递数据是通过 props,子向父是通过 events($emit); 通过父链 / 子链也可以通信($parent / $children); ref 也可以访问组件实例; provide / inject; $attrs/$listener
2023-02-15T06:18:00Z
2023-02-15T06:18:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】Vue中 常见的组件通信方式可分为三类 父子通信 父向子传递数据是通过 props,子向父是通过 events($emit); 通过父链 / 子链也可以通信($parent / $children); ref 也可以访问组件实例; provide / inject; $attrs/$listener <a href="https://www.cnblogs.com/luoguixin/p/17122824.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17102561.html
初识Sentry前端监控 - 不再犯错
前言今早偶尔读到方神发表了一篇 sentry(一)初探 的文章,正是我最近需要的,于是自己动手丰衣足食,搭建了一个属于自己的基于Sentry的前端监控平台。 为什么要做前端监控?相信每个前端开发人员都会遇见到下面这种情况! 客户:为什么我这个页面看不到数据??我:(急忙打开网站),我这边数据显示正常
2023-02-08T09:10:00Z
2023-02-08T09:10:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】前言今早偶尔读到方神发表了一篇 sentry(一)初探 的文章,正是我最近需要的,于是自己动手丰衣足食,搭建了一个属于自己的基于Sentry的前端监控平台。 为什么要做前端监控?相信每个前端开发人员都会遇见到下面这种情况! 客户:为什么我这个页面看不到数据??我:(急忙打开网站),我这边数据显示正常 <a href="https://www.cnblogs.com/luoguixin/p/17102561.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17099254.html
京东micro-app 微服务 - 不再犯错
源码地址:http://github.com/micro-zoe/micro-app 官网地址:http://zeroing.jd.com/micro-app 微前端的概念是由ThoughtWorks在2016年提出的,它借鉴了微服务的架构理念,核心在于将一个庞大的前端应用拆分成多个独立灵活的小型应
2023-02-08T02:00:00Z
2023-02-08T02:00:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】源码地址:http://github.com/micro-zoe/micro-app 官网地址:http://zeroing.jd.com/micro-app 微前端的概念是由ThoughtWorks在2016年提出的,它借鉴了微服务的架构理念,核心在于将一个庞大的前端应用拆分成多个独立灵活的小型应 <a href="https://www.cnblogs.com/luoguixin/p/17099254.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17097120.html
flex 学习资料 - 不再犯错
1. 5种常见的flex 布局实现 https://juejin.cn/post/6844903517241491463
2023-02-06T17:25:00Z
2023-02-06T17:25:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】1. 5种常见的flex 布局实现 https://juejin.cn/post/6844903517241491463 <a href="https://www.cnblogs.com/luoguixin/p/17097120.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17084620.html
Vue3 安裝v-viewer - 不再犯错
一、执行命令 npm install v-viewer@next 二、在main.js中引入 // v-viewer:图片预览、缩放、翻转 import 'viewerjs/dist/viewer.css' import Viewer from 'v-viewer' app.use(Viewer,
2023-02-01T17:14:00Z
2023-02-01T17:14:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】一、执行命令 npm install v-viewer@next 二、在main.js中引入 // v-viewer:图片预览、缩放、翻转 import 'viewerjs/dist/viewer.css' import Viewer from 'v-viewer' app.use(Viewer, <a href="https://www.cnblogs.com/luoguixin/p/17084620.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17080032.html
封装vue插件并发布到npm详细步骤 - 不再犯错
创建项目 创建项目 创建组件 编写每个组件对应的配置文件 最外层index.js文件夹配置 配置文件 package.json 配置文件webpack.config.js 打包 测试 发布 封装vue的插件用webpack-simple很合适,vue init webpack-simple name
2023-01-31T09:41:00Z
2023-01-31T09:41:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】创建项目 创建项目 创建组件 编写每个组件对应的配置文件 最外层index.js文件夹配置 配置文件 package.json 配置文件webpack.config.js 打包 测试 发布 封装vue的插件用webpack-simple很合适,vue init webpack-simple name <a href="https://www.cnblogs.com/luoguixin/p/17080032.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17076110.html
处理Navicat到期的办法 - 不再犯错
次方法是无限续杯法,可无限使用14天Navicat。 1.删除注册表 win+R输入regedit 分别粘贴如下两条语句 HKEY_CURRENT_USER\Software\PremiumSoft\Data 删除全部Date文件夹 HKEY_CURRENT_USER\Software\Classe
2023-01-30T07:24:00Z
2023-01-30T07:24:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】次方法是无限续杯法,可无限使用14天Navicat。 1.删除注册表 win+R输入regedit 分别粘贴如下两条语句 HKEY_CURRENT_USER\Software\PremiumSoft\Data 删除全部Date文件夹 HKEY_CURRENT_USER\Software\Classe <a href="https://www.cnblogs.com/luoguixin/p/17076110.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/luoguixin/p/17052925.html
egg.js 接入支付宝支付 - 不再犯错
1. 接入支付宝应用1. 必须注册企业支付宝账户,如果已有企业支付宝账户忽略此步骤; 2. 在支付宝开放平台,申请应用、填写名称、上传应用图标,在功能列表中选择或添加想要的支付功能类型; 3. 打开支付宝文档中心,下载对应系统的签名工具,签名工具下载存放电脑上的路径不能有中文和空格。点击RSA签名验
2023-01-14T16:53:00Z
2023-01-14T16:53:00Z
不再犯错
https://www.cnblogs.com/luoguixin/
【摘要】1. 接入支付宝应用1. 必须注册企业支付宝账户,如果已有企业支付宝账户忽略此步骤; 2. 在支付宝开放平台,申请应用、填写名称、上传应用图标,在功能列表中选择或添加想要的支付功能类型; 3. 打开支付宝文档中心,下载对应系统的签名工具,签名工具下载存放电脑上的路径不能有中文和空格。点击RSA签名验 <a href="https://www.cnblogs.com/luoguixin/p/17052925.html" target="_blank">阅读全文</a>