通过身份证号判断大于或等于18岁
摘要:
import java.util.Calendar;String idcard = request.getParameter("idcard");//身份证String chkidcard = idcard.toString().substring(6,10);//截取年Calendar cal = Calendar.getInstance();int year = cal.get(Calendar.YEAR);String fcm = "0";if(Integer.parseInt(idcard)+18>=year){fcm="1&qu 阅读全文