上一页 1 2 3 4 5 6 ··· 17 下一页
摘要: onLookFile() { let that = this; const filename = '下载附件' const fileExtName = ".pdf"; const randfile = filename + fileExtName; //wx.env.USER_DATA_PATH 是 阅读全文
posted @ 2023-06-08 17:52 不完美的完美 阅读(1332) 评论(1) 推荐(1) 编辑
摘要: 1、面向对象编程介绍 1、面向过程编程 POP(Process-oriented programming) 面向过程就是分析出解决问题所需要的步骤,然后用函数把这些步骤一步一步实现,使用的时候再一个一个的一次调用就可以了 面向过程,就是按照我们分析好了的步骤,按照步骤解决问题 2、面向对象编程 OO 阅读全文
posted @ 2022-11-25 11:10 不完美的完美 阅读(25) 评论(0) 推荐(0) 编辑
摘要: utils/utils.ts 日期格式转换 /** * 时间戳转化为年 月 日 时 分 秒 * @params number 传入时间戳 * @params format:返回格式,支持自定义,但参数必须与formateArr里保持一致 * formatTime(sjc,'Y/M/D h:m:s') 阅读全文
posted @ 2022-11-24 14:02 不完美的完美 阅读(2451) 评论(0) 推荐(0) 编辑
摘要: vue + elementUI + moment 根据切换月份查看当月的日历 main.ts import Vue from "vue"; import App from "./App.vue"; import router from "./router"; import store from ". 阅读全文
posted @ 2022-11-23 17:25 不完美的完美 阅读(99) 评论(0) 推荐(0) 编辑
摘要: mousemove 移动选中单元格 mousemove 移动选中单元格 click 选中/取消单元格 <template> <div class="table-page"> <div class="table-box"> <table cellpadding="0" cellspacing="0"> 阅读全文
posted @ 2022-11-23 16:41 不完美的完美 阅读(231) 评论(0) 推荐(0) 编辑
摘要: vue3 Vite 安装 npm init vite@latest -- --template vue npm install npm run dev 动态参数 动态属性 v-bind绑定 <button @click="attributeName = 'class'">改变属性 动态事件 <but 阅读全文
posted @ 2022-11-22 17:10 不完美的完美 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 模块化 export (导出) 导出用来决定一个模块中哪些内容可以被外部查看 导出分成两种默认导出和命名导出 1、默认导出 export default xxx; 一个模块中只能有一个默认导出 2、命名导出 export const x = xxx; import(导入) 导入用来将外部模块中内容导 阅读全文
posted @ 2022-11-22 17:09 不完美的完美 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 技术栈为:React + Hook + React-router-v6 + Mobx + AntD 源码地址:https://gitee.com/react-cp/react-pc-code React 基础讲义: https://www.yuque.com/fechaichai/qeamqf/xb 阅读全文
posted @ 2022-11-22 17:07 不完美的完美 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1、从对象数组中找出 id 相同的对象,放到新数组(二维数组)中 原链接:http://www.gkh0305.com/archives/findinfobyid const list = [ { id: 1, name: "张三", }, { id: 1, name: "李四", }, { id: 阅读全文
posted @ 2022-09-30 10:07 不完美的完美 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 一维数组和多维数组的转换 原链接:https://blog.csdn.net/qq_42451776/article/details/118944631 一维数组转多维数组 // idsysarea 表示父级元素 const arr = [ { id: 110000, // 省市县id, idsys 阅读全文
posted @ 2022-08-04 17:46 不完美的完美 阅读(324) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 17 下一页