QQ截图20180625131325.png
Life calculator was writed by JS and HTML, it could calculate how many years and days that you have lived in your life
I writed two bugs in this Mini program

Bug one

When I set the input's type into number, maxlength didn't work as I expected, users could type anything without length limitation

solve:
oninput="if(value.length>8)value=value.slice(0,8)"

Bug two

I wanted to add a typing effet into the page's character, I writed a funtion that could rechive this, when I entered character the second time, it didn't work as I expected.
solve:
delete function, typing effect was redundant, not simple, less is more.

Now you can see what this little program looks like. Maybe a little ugly, I'll fix it later
http://www.zhaoyuanjun.top/life.html