摘要: java int和char之间的相互转换 int 转 char int a = 12; char a_char = 12 + '0'; char 转 int char b_char = '8'; int b = b_char - '0'; 原因分析:char 类型保存的值就是该字符在ascii表中编 阅读全文
posted @ 2021-09-18 10:49 ichigo2004 阅读(345) 评论(0) 推荐(0)
摘要: Java随机生成6位字符串 import java.util.Random; /** * @author wangan */ public class SignUtil { private static final String BASIC = "123456789qwertyuiopasdfghj 阅读全文
posted @ 2021-08-13 16:13 ichigo2004 阅读(2940) 评论(0) 推荐(0)
摘要: 定义一个子组件 <template> <h2>子组件</h2> </template> <script> export default { name: "son" } </script> <style scoped> </style> 定义一个父组件,并引入子组件 <template> <div> 阅读全文
posted @ 2021-07-23 22:28 ichigo2004 阅读(88) 评论(0) 推荐(0)
摘要: axios 练习 import instance from './axios.js' const instance = axios.create({ baseURL: 'http://localhost:8003', timeout: 300000 }) instance.interceptors. 阅读全文
posted @ 2021-07-21 17:55 ichigo2004 阅读(65) 评论(0) 推荐(0)
摘要: 如何将任意List转化成指定List树形结构 权限表PermissionDTO /** * <pre> * 权限表 返回数据模型 * </pre> * * @author xx * @date 2021-07-07 */ @Data @ApiModel(value = "PermissionDto" 阅读全文
posted @ 2021-07-20 19:58 ichigo2004 阅读(190) 评论(0) 推荐(0)