使用vue3+vite做的自己常用的一些小工具 个人工具集
apk编译过程 ## 需要的工具 - jadx(Dex到Java反编译器) [github地址](https://github.com/skylot/jadx/) - jd-ui(查看jar包内容) [下载地址](http://java-decompiler.github.io/) - apktool (解包、打包) [https://ibotpeaches.github.io/Apktool/install/](https://ibotpeaches.github.io/Apktool/install/) - a…
final Base64.Decoder decoder = Base64.getDecoder(); final Base64.Encoder encoder = Base64.getEncoder(); final String text = "字串文字"; final byte[] textByte = text.getBytes("UTF-8"); //编码 final String encodedText = encoder.encodeToString(textB…
expiringmap ExpiringMap使用 - 掘金 (juejin.cn) 可以设置过期时间的缓存Map expiringmap github地址
需要的依赖 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.29</version> </dependency> <!--druid 数据库链接--> <dependency> <groupId>com.alibaba</groupId…
创建java.sh #!/bin/bash # 配置部分 APP_NAME="ai问答" # 应用名称 JAR_FILE="jnpf-admin-3.4.7-RELEASE.jar" # Java应用的JAR文件 LOG_FILE="myapp.log" # 应用的日志文件 BACKUP_DIR="backup" # 备份目录 PID_FILE="myapp.pid" # PID文件,用于记录Java进程ID ENV…
插件 IntelliJ IDEA 中有什么让你相见恨晚的技巧? 新版本idea配置 https://gitee.com/EightDoor/idea-new-settings 快捷键 自动生成返回值 ctrl+alt+v 生成getter、setter、构造函数 alt+ins 保存自动格式化代码 spring-boot 自动重启 添加依赖 spring-boot-devtools <dependency> <groupId>org.springframework.boot</grou…
实现方法: // Vue3.0 响应式原理 // 1). 2.0默认会递归(数据尽量扁平化) 2). 2.0数组改变length是无效的 3). 2.0对象不存在的属性不能被拦截 // proxy 兼容性差 ie11不兼容 let toProxy = new WeakMap(); // 弱引用映射表 es6 放置的是 原对象:代理过的对象 let toRaw = new WeakMap(); // 被代理过得对象:原对象 // 判断是不是对象 function isObject(val) { return type…
具体实现: // Vue2.0如何实现响应式原理 // 拿到原来原型上的方法 let oldArrayPrototype = Array.prototype; // 创建新的实例,获取原型所有方法,以免影响原型方法。 let propto = Object.create(oldArrayPrototype); // 继承 ["push", "shift", "unshift"].forEach(method => { propto[method] = function() { // 函数劫持, 把函数进行重写 内部…