摘要:
js中获得当前时间是年份和月份,形如:201208 //获取完整的日期 var date=new Date; var year=date.getFullYear(); var month=date.getMonth()+1; month =(month<10 ? "0"+month:month); 阅读全文
摘要:
原文地址:http://www.cnblogs.com/xiaofengfeng/archive/2010/11/20/1882372.html 1.只要求保留N位不四舍5入 float f = 0.55555f; int i =(int)(f * 100); f = (float)(i*1.0)/ 阅读全文