獲取的時間格式為 2012-5-28
var thetime = document.getElementById("clearDate").value;
var d=new Date(Date.parse(thetime .replace(/-/g,"/")));
var curDate=new Date();
if(d <=curDate){
alert("請選擇大於今天清算時間!");
}
獲取的時間格式為 2012-5-28
var thetime = document.getElementById("clearDate").value;
var d=new Date(Date.parse(thetime .replace(/-/g,"/")));
var curDate=new Date();
if(d <=curDate){
alert("請選擇大於今天清算時間!");
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。