标签:
//获取当前日期
function show() {
var mydate = new Date();
var str = "" + mydate.getFullYear() + "-";
str += (mydate.getMonth() + 1) + "-";
str += mydate.getDate();
return str;
}
var nowDate = show();
标签:
原文地址:http://www.cnblogs.com/zhangxiaolei521/p/4987765.html