05 2016 档案

js获取随机数的方法(搬运来的)
摘要:<script> function GetRandomNum(Min,Max){ var Range = Max - Min; var Rand = Math.random(); return(Min + Math.round(Rand * Range)); } var num = GetRando 阅读全文

posted @ 2016-05-30 20:12 看你妹儿 阅读(8157) 评论(0) 推荐(0)

获取32位随机码(uuid)的方法
摘要:public static String uuid(){ String getid=UUID.randomUUID().toString().replace("-", ""); return getid; } 阅读全文

posted @ 2016-05-30 20:06 看你妹儿 阅读(10282) 评论(0) 推荐(0)

按照指定格式获取当前时间的方法
摘要:public static String GetDate(){ Calendar cal = Calendar.getInstance(); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); return f 阅读全文

posted @ 2016-05-30 20:05 看你妹儿 阅读(542) 评论(0) 推荐(0)

javascript 输入两个日期,得到两个日期相差的天数
摘要:<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <script> function cha(){ var y1=document.twoday.y1.value; var m1=document 阅读全文

posted @ 2016-05-30 18:14 看你妹儿 阅读(737) 评论(0) 推荐(0)

导航