https://blog.csdn.net/m0_37852904/article/details/85790793 // 计算续住的总日期列表 getAll(begin, end) { let arr1= begin.split("/"); let arr2= end.split("/"); let arr1_= new Date(); let arrTime = []; arr1_.setUTCFullYear(arr1[0], arr1[1] - 1, arr
自己封装的一个js方法用于获取显示的星期和日期时间 /** * 获取用于显示的星期和日期时间 * @param date * @returns {string} */ function getWeek(date){ //将字符串日期转换日期对象 date = date.replace(/-/g, '/'); var dd = new Date(date); var curDate = new Date(); var curDate2 = new Date(); var m = dd.getMon
import java.util.Calendar; import java.util.Date; public class main { public static void main(String[] args) { Date today = getXdaysLater(0); Date oneMonLater = getXdaysLater(30); Date twoMonLater = getXdaysLater(60); Date halfYearLater = getXdaysLat
Html: <li><a href="#" v-on:click="typeStyle">萨克斯萨克<span></span></a></li> Js: typeStyle: function (e) { var el = e.target; el.style.backgroundColor = 'green'; $(el).css("border","1px so
var dd = new Date(); var AddDayCount = 0; //0 今天 1 明天 -1 昨天 以此类推 dd.setDate(dd.getDate() + AddDayCount);//获取AddDayCount天后的日期 var y = dd.getYear(); var m = dd.getMonth() + 1;//获取当前月份的日期 var d = dd.getDate(); y = y < 1900 ? (y + 1900) : y; alert(y + &quo
js获取三天后的日期 setDate getNowAddTreeFormatDate() { var date = new Date(); date.setDate(date.getDate()+3);//获取3天后的日期 var seperator1 = "-"; var seperator2 = ":"; var month = date.getMonth() + 1; var monthStr:string; var day = date.getDate();