<input type="text" id="showtime" value="" /><script type="text/javascript">function ymdhis(){ var obj = new Date(); var y = obj.getFullYear(); var m = obj.getMonth()+1; var d = obj.getDate(); var h = obj…
// 获得的后台json 时间格式转化 例如:1520305366000 转化为XXXX-XX-XX类似这种 function timeStamp2String(time){ var datetime = new Date(); datetime.setTime(time); var year = datetime.getFullYear(); var month = datetime.getMonth() + 1 < 10 ? "0" + (datetime.getMonth…