随笔分类 -  前端

摘要:// 刷新当前页签 window.location.reload(); // 刷新父级页面 window.opener.location.reload(); 阅读全文
posted @ 2022-02-25 10:07 X_LLin 阅读(24) 评论(0) 推荐(0)
摘要:从一个数组中删除重复数据/删除重复对象/删除全部重复对象 1、简单数组去重 可以借用数组的 filter()方法和indexOf()方法,由于 indexOf(item) 返回的是数组中第一个item的索引,所以可以借此实现数组元素去重的功能 const names = ['张三', '李四', ' 阅读全文
posted @ 2021-04-28 16:46 X_LLin 阅读(622) 评论(0) 推荐(0)
摘要:1. 根据官方文档,实现提交代码到码云仓库 文档地址:https://gitee.com/help/articles/4122 但是执行后出现报错:There is no tracking information for the current branch 2. 解决办法:git branch – 阅读全文
posted @ 2019-11-13 18:29 X_LLin 阅读(2063) 评论(0) 推荐(0)