07 2022 档案

摘要:javascript 解决后端返回的数据是下划线命名规范而前端需要的是驼峰命名规范 一.初级版本 仅支持两个下划线: 例如:user_name , user_id, ..... //下划线转驼峰 export const toTuofeng = (str: string) => { return s 阅读全文
posted @ 2022-07-10 22:08 土豆哥 阅读(838) 评论(0) 推荐(0)
摘要:class DBPool { constructor() { this.mysql = require("mysql"); this.config = require("./db.config"); //1.创建mysql连接对象 this.pool = this.mysql.createPool( 阅读全文
posted @ 2022-07-08 11:54 土豆哥 阅读(276) 评论(0) 推荐(0)