吕三三的博客如何利用map()将字符串数组转int数组的三种方式 方式一 let arr = ['1','2','3','4','5']; let mapArr = arr.map(Number); console.log(mapArr); 方式二 let arr = ['1','2','3','4','5']; let mapArr = arr....
程序员Aike的博客使用Mybatis存储枚举类型,数据库中以int类型存储,需要进行类型转换(handler适配) 2、代码实现 枚举类定义: public interface IEnum { int getValue(); } public enum EnumWhatIfChangeType ...