根据表格的时间显示表格的时间,本机的时间,韩国的时间
1<%@ Page Language="C#"AutoEventWireup ="true"CodeBehind ="WebForm1.aspx.cs"Inherits="time.WebForm1"%>23<!DOCTYPE html>45<htmlxmlns="http://www.w3.org/1999/xhtml">6<head runat="server">7<title >123</title>8<script src="Scripts/jquery-1.10.2.min.js"></script>9<script type ="text/javascript">10$(function() {11$("table tr td").each(function() {12varnormalDate = $(this).html();13if(normalDate !="") {14vard1 =newDate(normalDate);15if(d1 !=null) {16varyear =d1.getFullYear();17varmonth = d1.getMonth() +1;18varday =d1.getDate();19varhour =d1.getHours();20varminute =d1.getMinutes();21vartimezone = Math.abs(d1.getTimezoneOffset()) /60;22if(timezone <10)23timezone ="0"+timezone;24$("#t2").html("本机时间:"+""+ year +"/"+ month +"/"+ day +""+ hour +":"+ minute +"+"+timezone);25}2627vard2 =newDate(normalDate);28if(d2 !=null) {29d2.setMinutes(d2.getMinutes() + d2.getTimezoneOffset() +540)//韩国是54030varyear =d2.getFullYear();31varmonth = d2.getMonth() +1;32varday =d2.getDate();33varhour =d2.getHours();34varminute =d2.getMinutes();35vartimezone ="09";36$("#t3").html("韩国时间:"+""+ year +"/"+ month +"/"+ day +""+ hour +":"+ minute +"+"+timezone);37}38}39})40});41</script>42</head>43<body>44<tableclass="TimeField1"style="width: 100%;">45<tr id="t1">46<td>2015/11/0901:39+03</td >47</tr>48<tr id="t2">49</tr>50<tr id="t3">51</tr>52</table>53</body>5455</html>