该函数以24小时格式返回时间.
function fomartTimeShow(h) { return h < 10 ? "0" + h + ":00" : h + ":00"; }
以24小时格式返回时间.我希望时间以12小时格式转换. 任何帮助将不胜感激. 谢谢.
javascript time
javascript ×1
time ×1