摘要: /* * @Author: 张大碗 zhangjunhui@mangocosmos.com * @Date: 2023-09-20 17:36:15 * @LastEditors: 张大碗 zhangjunhui@mangocosmos.com * @LastEditTime: 2023-10-08 阅读全文
posted @ 2023-10-12 18:46 前端张大碗 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 组件案例 <template> <div class="dialog-search"> <el-form :inline="true" ref="ruleForm" :model="formInline" class="demo-form-inline top-screen"> <div class 阅读全文
posted @ 2023-10-08 18:29 前端张大碗 阅读(253) 评论(0) 推荐(0) 编辑
摘要: //修改url某个指定的参数 url 地址。 paramName 参数。 repalceValue替换的新值 replaceUrl( url, paramName, repalceValue){ let oldUrl=url.toString() let r= eval('/('+paramName 阅读全文
posted @ 2023-02-22 17:07 前端张大碗 阅读(302) 评论(0) 推荐(0) 编辑
摘要: //html 部分<el-form :model="formObj" :rules="rules"> <el-table :data="formObj.list"> <el-table-column align="center" > <template slot="header"><span>nam 阅读全文
posted @ 2023-02-07 16:48 前端张大碗 阅读(114) 评论(0) 推荐(0) 编辑
摘要: function(arr){ let hash={} for (const key in arr){ if(hash[arr[key]]){ return true } hash[arr[key]]=true } return false } 阅读全文
posted @ 2022-01-07 17:17 前端张大碗 阅读(573) 评论(0) 推荐(0) 编辑
摘要: let a=[] let hash={} a=a.reduce((pre,next)=>{ hash[next.name]?"":(hash[next.name]=true&&pre.push(next)); return pre; },[[]]) 阅读全文
posted @ 2021-12-27 15:11 前端张大碗 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 1. 声明和初始化数组 我们可以使用默认值(如""、null或 )初始化特定大小的数组0。您可能已经将这些用于一维数组,但如何初始化二维数组/矩阵呢? const array = Array(5).fill(''); // 输出 (5) ["", "", "", "", ""] const matr 阅读全文
posted @ 2021-06-17 11:57 前端张大碗 阅读(161) 评论(0) 推荐(0) 编辑
摘要: let result = (value.toString()).indexOf("."); if (result != -1 && value.toString().split(".")[1].length > 8) { return; } 阅读全文
posted @ 2021-06-08 14:33 前端张大碗 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 凌晨0点 fields['startTime']=new Date(new Date(fields.searchTime2[0]).toLocaleDateString()).getTime() 当天23点59分59秒 fields['endTime']=new Date(new Date(fiel 阅读全文
posted @ 2021-04-09 17:58 前端张大碗 阅读(6098) 评论(0) 推荐(0) 编辑
摘要: let data = [ { id: 201801, name: '张三', age: 15, }, { id: 201804, name: 'John', age: 18, }, { id: 201802, name: '李四', age: 18, }, { id: 201801, name: ' 阅读全文
posted @ 2020-10-23 17:13 前端张大碗 阅读(351) 评论(0) 推荐(0) 编辑