摘要: // 判断是否是德国的夏令时期间 function isDST(date:any) { var year = date.getFullYear(); var dstStart = new Date(year, 2, lastSunday(year, 2), 2); // 夏令时开始于3月最后一个星期 阅读全文
posted @ 2023-12-06 17:21 Hello程序媛 阅读(133) 评论(0) 推荐(0)
摘要: 1.在当前文件script标签里面引入axios import axios from "axios" 2.在methods中定义函数 getTest() { var apiUrl = "http://xxxxx/api/cicd-server/cicd/querylist" var params = 阅读全文
posted @ 2023-04-13 10:31 Hello程序媛 阅读(164) 评论(0) 推荐(0)
摘要: 1.命令行删除 node_modules 文件1)安装删除工具npm install rimraf -g2)执行删除命令rimraf node_modules 2.更新远程分支 git remote update origin --prune 3.合并分支 git merge xxxx(分支名称) 阅读全文
posted @ 2022-09-23 16:26 Hello程序媛 阅读(55) 评论(0) 推荐(0)
摘要: 1、iframe嵌套的页面里,下载功能下载失败 在iframe标签加上属性 sandbox=“allow-downloads” 2、iframe嵌套的页面里,使用腾讯云播放器,播放器不能全屏问题 在 iframe 标签里设置属性 allowfullscreen,示例代码: <iframe allow 阅读全文
posted @ 2022-05-11 19:25 Hello程序媛 阅读(713) 评论(0) 推荐(0)
摘要: 方法一: const arr = [ {id: 1, name: "张三"}, {id: 2, name: "AAA"}, {id: 3, name: "ZCZ"}, {id: 1, name: "张三"}, {id: 3, name: "ZCZ"} ] let hash = [] const ne 阅读全文
posted @ 2022-05-11 17:56 Hello程序媛 阅读(439) 评论(0) 推荐(0)
摘要: 连续点击按钮,提示框会出现很多个。现在需要优化,连续点击时,只出现一个提示弹窗 解决方法: 在出现弹窗之前,先关闭全部弹窗 this.$message.closeAll(); this.$message.error('错了哦,这是一条错误消息'); 阅读全文
posted @ 2022-05-11 17:54 Hello程序媛 阅读(876) 评论(0) 推荐(1)