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 看你妹儿 阅读(8142) 评论(0) 推荐(0) 编辑

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

posted @ 2016-05-30 20:06 看你妹儿 阅读(10163) 评论(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 看你妹儿 阅读(533) 评论(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 看你妹儿 阅读(715) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示