摘要: /*真正的四舍五入的方法Dight:要计算的数How:要保留的位数*/function ForDight(Dight, How) { Dight = Math.round(Dight * Math.pow(10, How)) / Math.pow(10, How); return Dight;}========================================================== 阅读全文
posted @ 2013-10-31 14:49 xinhua_wen 阅读(153) 评论(0) 推荐(0) 编辑
摘要: =================================================================/*将时间格式化为yyyy-MM-dd hh:mm:ss_num=1:显示带 时/分/秒_num=0:只显示 年/月/日_num=2:只显示 时/分/秒*/=================================================================function GetDataTime(_num) { var today = new Date(); var years = today.getFullYear(); var mo 阅读全文
posted @ 2013-10-31 14:42 xinhua_wen 阅读(255) 评论(0) 推荐(0) 编辑