筆記-java-獲取某年某月的最后一天
public class LastDayOfMonth { /** * 獲取某月的最后一天 * */ public static String ...
public class LastDayOfMonth { /** * 獲取某月的最后一天 * */ public static String ...
double d = 3.1415926;String result = String.format("%.2f", d);( %.2f %. 表示 小數點前任意位數 2 表示兩位小數 格式后的結果為 ...
formatDate : function(time) { if(time!=null){ var datetime = new Date(); datetime.setTime(time); var ...