摘要: function deepClone(target) { let result; if (typeof target "object") { if (Array.isArray(target)) { result = []; for (const i in target) { result.push 阅读全文
posted @ 2024-04-09 08:58 Smile浅笑 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1、只需要显示一行,超过的省略号处理 text{ overflow:hidden; //超出一行文字自动隐藏 text-overflow:ellipsis; //文字隐藏后添加省略号 white-space:nowrap; //强制不换行 } 2、如果在多行的情况下 注解一定要加 注解一定要加 注解 阅读全文
posted @ 2023-12-18 10:50 Smile浅笑 阅读(436) 评论(0) 推荐(0) 编辑
摘要: departmentIds: [], departmentNames: [], changeLocationValue(val) { this.departmentIds = [] //初始化数据 this.departmentNames = [] //初始化数据 for (let i = 0; i 阅读全文
posted @ 2023-05-05 10:01 Smile浅笑 阅读(223) 评论(0) 推荐(0) 编辑
摘要: #user nobody;worker_processes 1; events { worker_connections 1024;} http { include mime.types; default_type application/octet-stream; keepalive_timeou 阅读全文
posted @ 2023-03-07 20:08 Smile浅笑 阅读(118) 评论(0) 推荐(0) 编辑
摘要: search() { let keyword = this.keyword if (keyword == '') { return this.init_list } else { this.init_list = this.init_list.filter(function(agentlist) { 阅读全文
posted @ 2022-08-03 11:09 Smile浅笑 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 1. 安装 npm i http-proxy-middleware --save 2. src下新建 setupProxy.js const { createProxyMiddleware } = require("http-proxy-middleware") module.exports = f 阅读全文
posted @ 2022-03-17 22:28 Smile浅笑 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1.合并数据 const a = [1,2,3]; const b = [1,5,6]; const c = [...new Set([...a,...b])];//[1,2,3,5,6] const obj1 = { a:1, } const obj2 = { b:1, } const obj = 阅读全文
posted @ 2022-02-25 10:18 Smile浅笑 阅读(138) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2021-12-16 16:18 Smile浅笑 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 封装echarts组件 1. 基本组件common\echart\index.vue <template> <div :id="id" :class="className" :style="{ height: height, width: width }" /> </template> <scrip 阅读全文
posted @ 2021-12-16 13:48 Smile浅笑 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 升级node版本(nvm) 1.查看本地安装的所有版本 nvm list 2.安装,命令中的版本号可自定义 nvm install 14.15.0 3.使用特定版本 nvm use 14.15.0 4.卸载版本 nvm uninstall 14.15.0 阅读全文
posted @ 2021-11-24 17:27 Smile浅笑 阅读(405) 评论(0) 推荐(0) 编辑