5621acc5 by yangjianbin

init

1 parent fb664cdc
...@@ -42,8 +42,10 @@ ...@@ -42,8 +42,10 @@
42 return null; //返回参数值 42 return null; //返回参数值
43 } 43 }
44 44
45 function getNowFormatDate() { 45 function getNowFormatDate(date) {
46 var date = new Date(); 46 if(!date){
47 date = new Date();
48 }
47 var seperator1 = "-"; 49 var seperator1 = "-";
48 var year = date.getFullYear(); 50 var year = date.getFullYear();
49 var month = date.getMonth() + 1; 51 var month = date.getMonth() + 1;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!