摘要: 在Vue中,可以使用Promise和setTimeout来实现一个sleep函数。 下面是一个示例代码: function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } 这个函数接受一个毫秒数,返回一个Pr 阅读全文
posted @ 2023-05-09 09:01 it写代码 阅读(1949) 评论(0) 推荐(0) 编辑
摘要: 路由切换方式(navigateTo、redirectTo、reLaunch、switchTab)URL参数必须使用绝对路径 uni.navigateTo({ url: '/pages/goods/add', 阅读全文
posted @ 2021-11-22 16:54 it写代码 阅读(553) 评论(0) 推荐(0) 编辑
摘要: this.bbbb= false; this.$nextTick(()=>{ this.aaaaa= true; }) 把参数 放入this.$nextTick() 执行,减少异步队列堵塞 阅读全文
posted @ 2021-11-18 17:49 it写代码 阅读(716) 评论(2) 推荐(0) 编辑
摘要: this.model.examineFlowId = res.result.examineFlowId this.model = Object.assign({}, this.model); 参数初始化有值, validatorRules验证不到,后来重新挂载下 解决了 阅读全文
posted @ 2021-11-05 20:57 it写代码 阅读(88) 评论(0) 推荐(0) 编辑
摘要: <template> <a-modal ref="modal" :class="getClass(modalClass)" :style="getStyle(modalStyle)" :visible="visible" v-bind="_attrs" v-on="$listeners" @ok=" 阅读全文
posted @ 2021-11-05 15:25 it写代码 阅读(1207) 评论(0) 推荐(0) 编辑
摘要: <a-card :bordered="false"> <a-form :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }"> <a-form-item :label="item.dictItemName" v-for="(item,index) i 阅读全文
posted @ 2021-11-05 10:44 it写代码 阅读(1852) 评论(0) 推荐(0) 编辑
摘要: fileDownListUrl(this.selectedRowKeys.join(),params).then((res) => { console.log(1) if (!res) { this.$message.warning("文件下载失败") return } if (typeof win 阅读全文
posted @ 2021-10-02 11:58 it写代码 阅读(601) 评论(0) 推荐(0) 编辑
摘要: 手写一个通用类,导出excel ,方便快捷 using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; u 阅读全文
posted @ 2021-09-13 11:18 it写代码 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 在 vue3.0 里面使用路由必须要引入 useRouter 和 useRoute import { useRoute, useRouter } from 'vue-router' function useHooks() { const Router = useRouter() //跳转 const 阅读全文
posted @ 2021-07-16 11:43 it写代码 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-13 17:20 it写代码 阅读(94) 评论(2) 推荐(0) 编辑
摘要: 需要改成同步请求,异步效率很低 阅读全文
posted @ 2021-06-18 17:15 it写代码 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 1,查看iis服务器报错原因,查看服务器管理器报错事情 错误原因 It was not possible to find any compatible framework versionThe framework 'Microsoft.NETCore.App', version '2.2.8' wa 阅读全文
posted @ 2021-04-13 09:35 it写代码 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 工厂类:实例化算法,根据条件选择实现类; 算法类 (定义参数和方法) 实现类(继承算法):重写方法,进行实现 阅读全文
posted @ 2021-03-02 17:29 it写代码 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 状态类 状态抽象类 工作类 阅读全文
posted @ 2021-02-19 17:01 it写代码 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 原因,个人操作失误,设置了缩放比例,导致模糊,本人操作失误,特此记录下 阅读全文
posted @ 2021-02-07 10:27 it写代码 阅读(107) 评论(0) 推荐(0) 编辑