var date = new Date(), time=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate();//表示当前日期
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
var h = date.getHours()+1;
var mm = date.getMinutes()+1;
var s = date.getSeconds()+1;