摘要: ts定义数组 // 定义整数型数组 const arr1: number[] = [] const arr1_1: Array<number> = [] // 定义字符窜型数组 const arr2: string[] = [] const arr2_1: Array<string> = [] // 阅读全文
posted @ 2024-07-12 11:27 前端小菜鸡美哥 阅读(107) 评论(0) 推荐(0)
摘要: 注意!!!后端返回数据要求 字段如下 url: 'http://127.0.0.1:8088/edition_manage/get_edition', //示例接口 传参data: { edition_type: plus.runtime.appid, version_type: uni.getSy 阅读全文
posted @ 2024-05-29 18:25 前端小菜鸡美哥 阅读(83) 评论(0) 推荐(0)
摘要: <template> <div class="app-container"> <el-card shadow="never"> <el-row :gutter="20" type="flex" justify="space-between"> <el-col :span="12" style="di 阅读全文
posted @ 2023-09-15 17:45 前端小菜鸡美哥 阅读(679) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2023-06-21 14:29 前端小菜鸡美哥 阅读(21) 评论(0) 推荐(0)
摘要: 新建filters.js如下,内容过滤可以自己写函数,记得export 导出 import dayjs from "dayjs"; // 转小写 let lower = value => value.toLowerCase(); // 转大写 let upper = value => value.t 阅读全文
posted @ 2023-06-17 10:57 前端小菜鸡美哥 阅读(175) 评论(0) 推荐(0)
摘要: const express = require('express') const app = express() app.use((req, res, next) => { console.log(req.query); //这里很关键的一句,表示发送的消息是以纯文本形式发送的 res.set('C 阅读全文
posted @ 2023-06-10 11:17 前端小菜鸡美哥 阅读(58) 评论(0) 推荐(0)
摘要: 第一种:for循环,也是最常见的 最简单的一种,也是使用频率最高的一种,虽然性能不弱,但仍有优化空间 const arr = [11, 22, 33, 44, 55, 66, 77, 88]; for (let i = 0; i < arr.length; i++) { console.log(ar 阅读全文
posted @ 2023-06-10 11:12 前端小菜鸡美哥 阅读(4116) 评论(0) 推荐(0)
摘要: 组合: (不考虑顺序,无重复) //测试用例 let dataArr = [1, 2, 3, 4, 5]; function combination(dataArr, remainNum, currentArr) { if (remainNum 0) { console.log(...current 阅读全文
posted @ 2023-06-10 10:38 前端小菜鸡美哥 阅读(66) 评论(0) 推荐(0)
摘要: 请看效果图,支持elementUI所有表单组件 1、新建DialogForm.vue文件 <template> <div class="base-dialog"> <el-dialog :type="type" :custom-class="customClass" :close-on-click- 阅读全文
posted @ 2023-06-09 17:48 前端小菜鸡美哥 阅读(2534) 评论(0) 推荐(0)
摘要: 1、新建BaseSearch.vue文件 <!-- *名称:弹窗的搜索条件组件 *功能:methods 1.点击搜索的方法:@search 2.搜索条件 props : formItemList --> <template> <div class="dialog-search"> <el-form 阅读全文
posted @ 2023-06-09 11:32 前端小菜鸡美哥 阅读(4266) 评论(0) 推荐(0)