init
Showing
2 changed files
with
16 additions
and
1 deletions
| ... | @@ -38,6 +38,21 @@ | ... | @@ -38,6 +38,21 @@ |
| 38 | var r = window.location.search.substr(1).match(reg); //匹配目标参数 | 38 | var r = window.location.search.substr(1).match(reg); //匹配目标参数 |
| 39 | if (r != null) return unescape(r[2]); return null; //返回参数值 | 39 | if (r != null) return unescape(r[2]); return null; //返回参数值 |
| 40 | } | 40 | } |
| 41 | function getNowFormatDate() { | ||
| 42 | var date = new Date(); | ||
| 43 | var seperator1 = "-"; | ||
| 44 | var year = date.getFullYear(); | ||
| 45 | var month = date.getMonth() + 1; | ||
| 46 | var strDate = date.getDate(); | ||
| 47 | if (month >= 1 && month <= 9) { | ||
| 48 | month = "0" + month; | ||
| 49 | } | ||
| 50 | if (strDate >= 0 && strDate <= 9) { | ||
| 51 | strDate = "0" + strDate; | ||
| 52 | } | ||
| 53 | var currentdate = year + seperator1 + month + seperator1 + strDate; | ||
| 54 | return currentdate; | ||
| 55 | } | ||
| 41 | 56 | ||
| 42 | function msg(msg) { | 57 | function msg(msg) { |
| 43 | layer.msg(msg); | 58 | layer.msg(msg); | ... | ... |
-
Please register or sign in to post a comment