![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
es6一些新语法的使用
布偶猫葵葵
这个作者很懒,什么都没留下…
展开
-
ES6数组中关于map和reduce的使用
map() : 一般用来接收一个函数,将原数组中的所有结果按照指定函数进行处理,并将处理之后的结果拼接成一个新的数组.案例:将字符串 类型的数组转换成了int类型的数组.let arr = ['1','20','-5','3'];console.log(arr)arr = arr.map(s => parseInt(s));console.log(arr) ...转载 2018-08-20 11:10:03 · 1083 阅读 · 0 评论 -
通用mapper不能解决的时候手动添加sql语句的模板
@Insert("insert into tb_category_brand values (#{cid},#{bid})")void insertCidandBid(@Param("cid") Long cid, @Param("bid") Long bid);在service中定义方法,然后在mapper里面实现这个方法,在方法的上面加上insert 标签,在标签的value里面写上...原创 2018-08-21 10:24:38 · 3093 阅读 · 1 评论