倒计时的实现
倒计时是web开发中常见的组件, 请完成second和render两个函数, 完成倒计时的显示部分
1、 second函数的输入为整数, 返回 { day: Int, hour: Int, min: Int, second: Int }
2、 render函数的输入为second函数的输出, 将数据在页面对应的DOM元素上显示出来, 格式如html所示
3、 如果day为0, 隐藏对应的DOM元素, 否则显示( 请直接使用已经实现的css代码)
4、 数值不足两位, 前面补充0
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>倒计时实现</title>
</head>
<body>
<span></span>
<span></span>
<span></span>
<span></span>
<script>
function second(second) { //se