-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex2.htm
More file actions
90 lines (83 loc) · 2.87 KB
/
Copy pathindex2.htm
File metadata and controls
90 lines (83 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover" />
<meta charset="UTF-8"/>
</head>
<body>
<div style="padding:5px">
<link href="CMS.css" rel="stylesheet" />
<style>
#tblDetail th {
width: 8em;
}
</style>
<table id="tblDetail" border="1" cellpadding="0" cellspacing="0" class="SearchResultTable" style="width:100%;">
<caption>合同详细信息(编号:2211773527)</caption>
<tbody>
<tr>
<th><label for="BargainType">合同类型</label></th>
<td>期房合同</td>
</tr>
<tr>
<th><label for="BargainDate">签订时间</label></th>
<td>2024-11-18</td>
</tr>
<tr>
<th><label for="Seller">出卖人</label></th>
<td>烟台市芝罘区鸿璟房地产开发有限公司</td>
</tr>
<tr>
<th><label for="Buyer">买受人</label></th>
<td>孙宏伟</td>
</tr>
<tr>
<th><label for="Address">房屋地址</label></th>
<td>芝罘区烟台芝罘吾悦广场吾悦首府5#商住楼1单元2202号</td>
</tr>
<tr>
<th><label for="Area">建筑面积</label></th>
<td><span>113.37</span>平方米</td>
</tr>
<tr>
<th><label for="Price">成交价格</label></th>
<td>1233465.6元(大写:壹佰贰拾叁万叁仟肆佰陆拾伍圆陆角)</td>
</tr>
<tr>
<th><label for="Price1">第一次付款金额</label></th>
<td>666071.42</td>
</tr>
<tr>
<th><label for="HTPrice">商品房总价款</label></th>
<td>1233465.6元(大写:壹佰贰拾叁万叁仟肆佰陆拾伍圆陆角)</td>
</tr>
<tr>
<th><label for="Price1Time">第一次付款时间</label></th>
<td>2024-11-18</td>
</tr>
<tr>
<th><label for="RecordTime">备案时间</label></th>
<td>2024-11-20</td>
</tr>
<tr>
<th style="color:red;">当前时间</th>
<td id="txt_current_time"></td>
</tr>
</tbody>
</table>
</div>
<script>
const now = new Date();
const year = now.getFullYear(); // 年(4位数)
const month = String(now.getMonth() + 1); // 月(0-11,需+1)
const day = String(now.getDate()); // 日
const hours = String(now.getHours()).padStart(2, '0'); // 时
const minutes = String(now.getMinutes()).padStart(2, '0'); // 分
const seconds = String(now.getSeconds()).padStart(2, '0'); // 秒
// 组合成格式:YYYY-MM-DD HH:MM:SS
const datetime = `${year}/${month}/${day} ${hours}:${minutes}:${seconds}`;
console.log(datetime); // 示例输出:2023-09-15 14:30:45
document.getElementById("txt_current_time").innerHTML=datetime;
</script>
</body>
</html>