var _time = $("#txtStartTime").val(); var weekArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); var week = weekArray[new Date(_time).getDay()];
var _time = $("#txtStartTime").val(); var weekArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); var week = weekArray[new Date(_time).getDay()];
转载于:https://www.cnblogs.com/foreverfendou/p/8081978.html