- 博客(3)
- 收藏
- 关注
原创 JavaScript 数组排序
JavaScript中数据排序1、数组排序(单纯数字)var items = [20,23,18,7,32,19,54,56,41]; var sortItems = function(){ return this.items.sort(); }function sortNumber(a, b) { return a-b; } 2、数组排序(对象数组)var students = [
2017-10-18 15:30:10 147
原创 Spring Boot 定时任务
Spring Boot项目定时任务实现定时任务实现方式: SpringBoot自带的Scheduled,可以将它看成一个轻量级的Quartz,而且使用起来比Quartz简单许多。spring boot 项目使用定时器实现任务步骤: 1)在项目启动的main方法中,添加注解 @EnableScheduling,该注解开启对计划任务的支持@SpringBootApplication @EnableS
2017-08-21 16:22:07 194
原创 MySql 实现多表更新
MySql多表更新Mysql实现多表更新的几种不同方法: 1)update table1 t1, table2 t2 set…的方式:update table1 t1, table2 t2 set t1.price = t1.price * 0.8, t2.num = 100 where t1.order_id= t2.order_id and t1.create_date < '2017-08-
2017-08-21 15:12:51 416
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人