06 2023 档案
摘要:pnpm add babel-plugin-enhance-log -D # or yarn add babel-plugin-enhance-log -D # or npm i babel-plugin-enhance-log -D 然后在你的 babel.config.js 里面添加插件 mod
阅读全文
摘要:新建filters.js如下,内容过滤可以自己写函数,记得export 导出 import dayjs from "dayjs"; // 转小写 let lower = value => value.toLowerCase(); // 转大写 let upper = value => value.t
阅读全文
摘要:const express = require('express') const app = express() app.use((req, res, next) => { console.log(req.query); //这里很关键的一句,表示发送的消息是以纯文本形式发送的 res.set('C
阅读全文
摘要:第一种:for循环,也是最常见的 最简单的一种,也是使用频率最高的一种,虽然性能不弱,但仍有优化空间 const arr = [11, 22, 33, 44, 55, 66, 77, 88]; for (let i = 0; i < arr.length; i++) { console.log(ar
阅读全文
摘要:组合: (不考虑顺序,无重复) //测试用例 let dataArr = [1, 2, 3, 4, 5]; function combination(dataArr, remainNum, currentArr) { if (remainNum 0) { console.log(...current
阅读全文
摘要:请看效果图,支持elementUI所有表单组件 1、新建DialogForm.vue文件 <template> <div class="base-dialog"> <el-dialog :type="type" :custom-class="customClass" :close-on-click-
阅读全文
摘要:1、新建BaseSearch.vue文件 <!-- *名称:弹窗的搜索条件组件 *功能:methods 1.点击搜索的方法:@search 2.搜索条件 props : formItemList --> <template> <div class="dialog-search"> <el-form
阅读全文
摘要:1、新建Pagination.vue文件 <template> <div :class="{'hidden':hidden}" class="pagination-container"> <el-pagination :current-page.sync="currentPage" :page-si
阅读全文
摘要:1、封装Dialog.vue文件 <template> <div class="base-dialog"> <el-dialog :type="type" :width="width" :custom-class="customClass" :fullscreen="fullscreen" :tit
阅读全文
摘要:<template> <div> <!-- 表单--> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" size="small"> <el-form-
阅读全文