5 월 29 일에 내 코드의 특정 부분이 실행되지 않도록하고 싶습니다 . 누군가 jQuery
또는으로 나를 도울 수 있습니다 JavaScript
.
이런 식으로 시도해 볼 수 있습니다.
var CurrentDate = new Date();
var YourSelectedDate = new Date(2016, 04, 29, 10, 15); //Here it is 29th may 2016
if(CurrentDate > YourSelectedDate ){
//CurrentDate is more than YourSelectedDate
// Display warning message or whatever you want to display.
}
else{
//YourSelectedDate is more than CurrentDate
//put your code in this part.
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다