我的问题还没有得到任何解决方案, 这是将今天设置为默认值的预订代码,如何将明天设置为默认值? 请帮忙吗?我应该从下面的代码改变什么代码
function cCheckDateOrder(G, C, B, H, E) {
var one_day = 1000 * 60 * 60 * 24;
var J = cDOM.cGetParentOrSelf(G, "form"),
K, L = new Date(0),
I = new Date(0),
A, F = new Date();
if (J[C].value !== "0") {
L.setDate(J[C].value);
}
if (J[B].value !== "0") {
K = J[B].value.split("-");
L.setFullYear(K[0]);
L.setMonth(K[1] - 1);
}
L.setHours(12);
L.setMinutes(0);
L.setSeconds(0);
if (J[H] != undefined && J[H].value !== "0") {
I.setDate(J[H].value);
}
if (J[E] != undefined && J[E].value !== "0") {
K = J[E].value.split("-");
I.setFullYear(K[0]);
I.setMonth(K[1] - 1);
}
I.setHours(12);
I.setMinutes(0);
I.setSeconds(0);
if (J[B].value !== "0") {
while (L.getMonth() != J[B].value.split("-")[1] - 1) {
L.setDate(L.getDate() - 1);
J[C].value = L.getDate();
}
var D = L.getMonth() + 1;
J[B].value = L.getFullYear() + "-" + D;
}
var days_diff = ((L - I) / one_day);
if (days_diff >= (1 - minimum_nights)) {
I.setTime(L.getTime() + minimum_nights * Date.prototype.MILLISECONDS_PER_DAY);
A = I.getMonth() + 1;
if (J[C].value !== "0") {
if (J[H] != undefined) J[H].value = I.getDate();
}
if (J[B].value !== "0") {
if (J[E] != undefined) J[E].value = I.getFullYear() + "-" + A;
}
}
cUpdateDaysInDDL();
}