会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zhou
博客园
首页
新随笔
联系
订阅
管理
2023年12月6日
判断德国时间冬令时和夏令时
摘要: // 判断是否是德国的夏令时期间 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)
2023年4月13日
直接使用axios调用接口的方法
摘要: 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)
2022年9月23日
常用git命令
摘要: 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)
2022年5月11日
关于iframe嵌套页面的问题
摘要: 1、iframe嵌套的页面里,下载功能下载失败 在iframe标签加上属性 sandbox=“allow-downloads” 2、iframe嵌套的页面里,使用腾讯云播放器,播放器不能全屏问题 在 iframe 标签里设置属性 allowfullscreen,示例代码: <iframe allow
阅读全文
posted @ 2022-05-11 19:25 Hello程序媛
阅读(713)
评论(0)
推荐(0)
在数组中,过滤重复id的对象
摘要: 方法一: 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)
解决Element-ui用户多次点击按钮,Message消息提示出现多个的问题
摘要: 连续点击按钮,提示框会出现很多个。现在需要优化,连续点击时,只出现一个提示弹窗 解决方法: 在出现弹窗之前,先关闭全部弹窗 this.$message.closeAll(); this.$message.error('错了哦,这是一条错误消息');
阅读全文
posted @ 2022-05-11 17:54 Hello程序媛
阅读(876)
评论(0)
推荐(1)
公告