标签:
this.InitControlTime = function () {
if ($("#txt_Id_").val() == "") {
var today = new Date();
$("#form1").find(".datacontrol").each(function (i, value) {
var field = $(value).attr("name");
if (field != null) {
if ($(value).attr("onclick") == "WdatePicker()") {
$(value).val(today.getFullYear() + "-" + (today.getMonth() + 1) + "-" + today.getDate());
}
}
});
}
};
标签:
原文地址:http://www.cnblogs.com/kexb/p/4683601.html