摘要:
function getLocalTime(){ let year = new Date().getFullYear() let month = new Date().getMonth()+1 let day = new Date().getDate() let hour = new Date(). 阅读全文
摘要:
随机抽取法, 时间复杂度 O(n^2) function randomSortArray(arr) { var stack = []; while (arr.length) { //Math.random():返回 [0,1) 之间的一个随机数 var index = parseInt(Math.r 阅读全文
摘要:
Date to String new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(startTime); Date to DateTime DateTime time = new DateTime(new Date()); Date to Strin 阅读全文