摘要:1、创建空文件夹 01_Server // 创建 package.json npm init 2、安装 node express 框架 npm i express 3、创建 app.js 4、创建路由 /* * @Description: node * @Author: PengShuai * @D
阅读全文
摘要:1、安装依赖 cnpm i dhtmlx-gantt -s 或 npm i dhtmlx-gantt -s 2、创建demo.vue <!-- * @Description: gantt * @Author: PengShuai * @Date: 2022-02-14 10:31:40 * @Las
阅读全文
摘要:1、代码 <div v-for="(item, index) in list" :key="index"> <div> 问题:{{ index + 1 }}、{{ item.title }} <span v-if="item.state 'single'">(单选)</span> <span v-e
阅读全文
摘要:1、css ::-webkit-scrollbar { width: 6px; height: 6px; background-color: #f5f5f5; } /*滚动条 阴影~圆角*/ ::-webkit-scrollbar-track { -webkit-box-shadow: inset
阅读全文
摘要:1、结构 <template> <div class="Ling"> <input type="text" v-model="searchValue" /> <div v-for="(item, index) in personInfoListSearch" :key="index"> {{ ite
阅读全文
摘要:1、数组 var demo = [ { value: 26 }, { value: 29 }, { value: 30 }, { value: 31 }, { value: 22 }, { value: 20 } ]; 2、方法 function compareFunc(field) { retur
阅读全文
摘要:1、方法 const formatDate = (date, format = "YYYY-MM-DD HH:mm:ss") => { if (!date) { return ""; } const d = new Date(date); // 年 if (/YYYY/.test(format))
阅读全文
摘要:1、方法 const formatThousand = data => { let type = Object.prototype.toString.call(data); if (type "[object Number]") { return data .toString() .replace(
阅读全文
摘要:1、方法 const typeOf = data => { let type = Object.prototype.toString.call(data); if (type "[object String]") { type = "String"; } else if (type "[object
阅读全文
摘要:1、两个数组通过唯一编码进行比较 /** * 根据某一属性找出差异 * @param {arry} arr1 第一个参数需要对比的数组 * @param {arry} arr2 第二个参数需要对比的数组 * @param {string} fildId 需要对比的属性 * @returns 返回有差
阅读全文
摘要:判断新数据与原始数据中有何不同(增删改) const formatSaveList = (newList, oldList) => { const insertList = []; const deleteList = []; const updateList = []; // 找到新增和修改 ne
阅读全文
摘要:1、创建WebSocket.js文件 2、设置链接 const url = "localhost:8080" 3、方法 class WebSocketClass { constructor() { this.instance = null; this.connect(); } static getI
阅读全文
摘要:1、布局 <template> <div class="WorkCanlender"> <div class="content not-select" @mouseup="endMove"> <div class="calendBox day" v-for="(item, index) in cal
阅读全文
摘要:1、组件部分 <el-dialog v-dialogDrag ref="xhzqDialog" class="xhzqDialog" :title="title" :fullscreen="isfullscreen" :visible.sync="dialogVisible" :append-to-
阅读全文
摘要:1、安装两个依赖 "postcss-pxtorem": "^5.1.1", "amfe-flexible": "^2.2.1", 2、main.js 中引入 import "amfe-flexible"; 3、创建vue.config.js (如果有不需要创建) const autoprefixer
阅读全文