代碼如下:
function bh_LoadViewState(){
var v=$("#hBirthday").val();
if(v=="")return;
var birthday=new Date(Date.parse(v.replace(/-/g, '/')))
$("#ddlYear").val(birthday.getFullYear());
$("#ddlMonth").val(birthday.getMonth()+1);
bh_setDayCount();
$("#ddlDay").val(birthday.getDate());
}