随笔 - 42,  文章 - 0,  评论 - 3,  阅读 - 24113
01 2022 档案
vue 单选-多选
摘要:#1、代码 <div v-for="(item, index) in list" :key="index"> <div> 问题:{{ index + 1 }}、{{ item.title }} <span v-if="item.state 'single'">(单选)</span> <span v- 阅读全文
posted @ 2022-01-27 14:35 丶凉雨拾忆 阅读(178) 评论(0) 推荐(0) 编辑
css 滚动条美化
摘要:#1、css ::-webkit-scrollbar { width: 6px; height: 6px; background-color: #f5f5f5; } /*滚动条 阴影~圆角*/ ::-webkit-scrollbar-track { -webkit-box-shadow: inset 阅读全文
posted @ 2022-01-26 13:32 丶凉雨拾忆 阅读(60) 评论(0) 推荐(0) 编辑
vue 过滤查询(计算属性 computed)
摘要:#1、结构 <template> <div class="Ling"> <input type="text" v-model="searchValue" /> <div v-for="(item, index) in personInfoListSearch" :key="index"> {{ it 阅读全文
posted @ 2022-01-21 13:29 丶凉雨拾忆 阅读(258) 评论(0) 推荐(0) 编辑
数组排序
摘要:#1、数组 var demo = [ { value: 26 }, { value: 29 }, { value: 30 }, { value: 31 }, { value: 22 }, { value: 20 } ]; #2、方法 function compareFunc(field) { ret 阅读全文
posted @ 2022-01-21 13:16 丶凉雨拾忆 阅读(27) 评论(0) 推荐(0) 编辑
格式化日期
摘要:#1、方法 const formatDate = (date, format = "YYYY-MM-DD HH:mm:ss") => { if (!date) { return ""; } const d = new Date(date); // 年 if (/YYYY/.test(format)) 阅读全文
posted @ 2022-01-10 11:14 丶凉雨拾忆 阅读(46) 评论(0) 推荐(0) 编辑
数字千位符
摘要:#1、方法 const formatThousand = data => { let type = Object.prototype.toString.call(data); if (type "[object Number]") { return data .toString() .replace 阅读全文
posted @ 2022-01-10 11:09 丶凉雨拾忆 阅读(123) 评论(0) 推荐(0) 编辑
VUE 判断数据类型
摘要:#1、方法 <!-- * @Descripttion: 类型判断 * @version: 0.0.1 * @Author: PengShuai * @Date: 2022年04月29日11:21:14 * @LastEditors: PengShuai * @LastEditTime: 2022年0 阅读全文
posted @ 2022-01-10 10:59 丶凉雨拾忆 阅读(3128) 评论(2) 推荐(2) 编辑
JS 数组对比去重
摘要:#1、两个数组通过唯一编码进行比较 /** * 根据某一属性找出差异 * @param {arry} arr1 第一个参数需要对比的数组 * @param {arry} arr2 第二个参数需要对比的数组 * @param {string} fildId 需要对比的属性 * @returns 返回有 阅读全文
posted @ 2022-01-07 14:50 丶凉雨拾忆 阅读(154) 评论(0) 推荐(0) 编辑
新老数据对比
摘要:判断新数据与原始数据中有何不同(增删改) const formatSaveList = (newList, oldList) => { const insertList = []; const deleteList = []; const updateList = []; // 找到新增和修改 ne 阅读全文
posted @ 2022-01-07 14:16 丶凉雨拾忆 阅读(127) 评论(0) 推荐(0) 编辑
vue 消息推送 WebSocket
摘要:#1、创建WebSocket.js文件 #2、设置链接 const url = "localhost:8080" #3、方法 class WebSocketClass { constructor() { this.instance = null; this.connect(); } static g 阅读全文
posted @ 2022-01-07 13:56 丶凉雨拾忆 阅读(993) 评论(0) 推荐(0) 编辑
日历
摘要:#1、布局 <template> <div class="WorkCanlender"> <div class="content not-select" @mouseup="endMove"> <div class="calendBox day" v-for="(item, index) in ca 阅读全文
posted @ 2022-01-06 14:14 丶凉雨拾忆 阅读(53) 评论(0) 推荐(0) 编辑
element-ui 弹窗实现拖拽
摘要:#1、组件部分 <el-dialog v-dialogDrag ref="xhzqDialog" class="xhzqDialog" :title="title" :fullscreen="isfullscreen" :visible.sync="dialogVisible" :append-to 阅读全文
posted @ 2022-01-06 13:57 丶凉雨拾忆 阅读(725) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示