Commit 2f943751 by doszhang

Update index.js dos

parent 028825cf
...@@ -106,20 +106,23 @@ $(document).ready(function () { ...@@ -106,20 +106,23 @@ $(document).ready(function () {
var day = myDate.getDate(); var day = myDate.getDate();
if (month >= yue && day >= ri) { if(month > yue)
{
$('.n-l').text(count_year); $('.n-l').text(count_year);
}
else if(month == yue)
} else { {
if(day >= ri)
if (count_year == 0) { {
$('.n-l').text(count_year); $('.n-l').text(count_year);
} else { }
else {
$('.n-l').text(count_year - 1); $('.n-l').text(count_year - 1);
} }
} }
else {
$('.n-l').text(count_year - 1);
}
if (window.age == 1) { if (window.age == 1) {
$('.sex').text('男性'); $('.sex').text('男性');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment