从0开始第4个2014-12-31 $("#dtp_input2").val().substring(0,4)//2014 转载于:https://www.cnblogs.com/914556495wxkj/p/6811414.html