摘要:
案例1 process.nextTick(() => {console.log('111');}); const promise = new Promise(resolve => { console.log('222'); resolve(); }); setTimeout(() => {conso 阅读全文
摘要:
editor.snippetSuggestions 阅读全文
摘要:
![](https://img2023.cnblogs.com/blog/1341065/202303/1341065-20230309144127766-1103558868.png) ![](https://img2023.cnblogs.com/blog/1341065/202303/1341065-20230309144137104-693172639.png) ![](https://i 阅读全文
摘要:
//获取前端请求过来的IP地址 let ip = (req.headers['x-real-ip'] || req.connection.remoteAddress).slice(7); //解决中文乱码 res.setHeader("content-Type",'text/plain;charse 阅读全文
摘要:
// 邮件发送第三方 // 0. 下载第三方 nodemailer // 1. 导入第三方 const nodemailer = require('nodemailer') // 2. 按照规则使用 // 2-1. 创建邮差(配置发送方配置项) // 语法: nodemailer.cretaeTra 阅读全文
摘要:
Nodejs Mysql 执行多条SQL语句 最近用 Nodejs + Express + Mysql 写接口碰到一个需要四表联查的接口。。。我特么只会连两张表啊~!网上百度了一波四表联查,由于我接口的数据相对比较复杂,果不其然,最终以凉凉告终,生活的压力最终迫使我向 SQL 妥协了。于是换了个思路 阅读全文
摘要:
三列 .bottom .classItem{ display: flex; justify-content: flex-start; flex-wrap: wrap; } .bottom .classItem .item{ width: 33.33333333333333333333%; heigh 阅读全文
摘要:
![](https://img2023.cnblogs.com/blog/1341065/202305/1341065-20230527112212646-596795718.png) 1. 完整的导航守卫流程 2. 路由导航守卫和Vue实例生命周期钩子函数的执行顺序? 4. 在afterEach钩 阅读全文
摘要:
let ip = (req.headers['x-real-ip'] || req.connection.remoteAddress).slice(7); 阅读全文
摘要:
员工与部门 从员工的角度出发 => 一个员工属于一个部门 从部门的角度出发 => 一个部分拥有多个员工 员工与角色 一个人可以扮演多个角色 老师与学生 老师可以带多个学生 学生可以上多个老师的课 阅读全文