04 2022 档案

vue找不到页面自定义404页面
摘要:在vue项目中,如果不做路由处理的话,用户可以直接在url随意输入跳转页面, 默认的时候我们是并没有什么处理。 现在需要做一个自定义的404找不到页面的处理方式。 1.在router文件夹下的index.js中添加 { path: '/:catchAll(.*)', name: '404', // 阅读全文
posted @ 2022-04-25 11:16 一群bug 阅读(841) 评论(0) 推荐(0) 编辑
css上下浮动效果
摘要:.div{ margin: 10px auto; animation: bounce-down 3.5s linear infinite;} @-webkit-keyframes bounce-down { 25% { -webkit-transform: translateY(-10px); } 阅读全文
posted @ 2022-04-21 15:44 一群bug 阅读(433) 评论(0) 推荐(0) 编辑
Centos8安装MySQL8.0报错Failed to download metadata for repo‘AppStream’「CentOS」
摘要:用sudo dnf install @mysql安装mysql报错Failed to download metadata for repo‘AppStream’「CentOS」 原因 CentOS Linux 8 已于 2021 年 12 月 31 日结束生命周期 (EOL)。这意味着 CentOS 阅读全文
posted @ 2022-04-13 14:29 一群bug 阅读(238) 评论(0) 推荐(0) 编辑
mysql以逗号分割的字符串转多个列
摘要:1.用到了mysql里面自带的一个表 mysql.help_topic SELECT u.nearHall, SUBSTRING_INDEX( SUBSTRING_INDEX( u.nearHall, ',', b.help_topic_id + 1 ), ',', - 1 ) AS spitId 阅读全文
posted @ 2022-04-13 11:08 一群bug 阅读(764) 评论(0) 推荐(1) 编辑
以逗号分割的字符串和数组之间来回转换的方法
摘要:数组转字符串用逗号分割 String[] arr = ["1","2","3","4","5"] String arrString = arr.join(","); 其中逗号可以改成其他任意符号 以逗号分割的字符串转为数组 String arrString = "1,2,3,4,5" String[ 阅读全文
posted @ 2022-04-12 18:00 一群bug 阅读(386) 评论(0) 推荐(0) 编辑

 
点击右上角即可分享
微信分享提示