实用的Java代码
${fn:substring(productViewVo.displayEndDate ,0,10) }
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9"/>
<script language="JavaScript">
//防止用户点击后退按钮
javascript:window.history.forward(1);
</script>
$("#inputadd").attr("disabled",true);
$("#complaintsForm").submit();
var reg=^(0|[1-9][0-9]\d{0,8})$;
var celltest = /^1[3|4|5|8][0-9]\d{4,8}$/;
if(phone == ''){
alert('手机号码不能为空');
return false;
}else{
if(!celltest.test(phone)){
alert('手机号码不正确!');
$("#phone").focus();
return;
}
}
function closethis(){
parent.$.fn.fancybox.close();
}
时间格式修改:DateFormat dft = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");