标签:blog http io os ar java for sp div
将当前时间化成hh:mm:ss的形式
格式化:
new Date().toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1")
将当前时间格式化为: HH/DD/YY形式
function formatDay(param) { var year = param.getFullYear(); var month = param.getMonth() + 1; var day = param.getDay(); month = month.toString() > 1 ? month :‘0‘+ month; day = day.toString() > 1 ? ‘0‘ + day : day; return day + "/" + month + "/" + year; }
标签:blog http io os ar java for sp div
原文地址:http://www.cnblogs.com/jinkspeng/p/4004274.html