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

浙公网安备 33010602011771号