A
angel725
Unregistered / Unconfirmed
GUEST, unregistred user!
网页上显示各国时区的代码,下面的是网页源码。用什么读出网页上的变量,并在delphi中显示???
function showTimes() {
var time = new Date().getTime();
var timeBeijing = new Date(time);
var timeNewYork = new Date(time - 60 * 60 * 12 * 1000);
var timeTokyo = new Date(time + 60 * 60 * 1000);
var timeLondon = new Date(time - 60 * 60 * 8 * 1000);
// var timeFrankfurt = new Date(time - 60 * 60 * 6 * 1000);
var timeSydney = new Date(time + 60 * 60 * 2 * 1000);
Beijing.innerText = timeBeijing.getHours() + ":" + timeBeijing.getMinutes() + ":" + timeBeijing.getSeconds();
NewYork.innerText = timeNewYork.getHours() + ":" + timeNewYork.getMinutes() + ":" + timeNewYork.getSeconds();
Tokyo.innerText = timeTokyo.getHours() + ":" + timeTokyo.getMinutes() + ":" + timeTokyo.getSeconds();
London.innerText = timeLondon.getHours() + ":" + timeLondon.getMinutes() + ":" + timeLondon.getSeconds();
// Frankfurt.innerText = timeFrankfurt.getHours() + ":" + timeFrankfurt.getMinutes() + ":" + timeFrankfurt.getSeconds();
比如想取timeBeijing.getHours() 这个的值在delphi上显示,要怎么做呢?
function showTimes() {
var time = new Date().getTime();
var timeBeijing = new Date(time);
var timeNewYork = new Date(time - 60 * 60 * 12 * 1000);
var timeTokyo = new Date(time + 60 * 60 * 1000);
var timeLondon = new Date(time - 60 * 60 * 8 * 1000);
// var timeFrankfurt = new Date(time - 60 * 60 * 6 * 1000);
var timeSydney = new Date(time + 60 * 60 * 2 * 1000);
Beijing.innerText = timeBeijing.getHours() + ":" + timeBeijing.getMinutes() + ":" + timeBeijing.getSeconds();
NewYork.innerText = timeNewYork.getHours() + ":" + timeNewYork.getMinutes() + ":" + timeNewYork.getSeconds();
Tokyo.innerText = timeTokyo.getHours() + ":" + timeTokyo.getMinutes() + ":" + timeTokyo.getSeconds();
London.innerText = timeLondon.getHours() + ":" + timeLondon.getMinutes() + ":" + timeLondon.getSeconds();
// Frankfurt.innerText = timeFrankfurt.getHours() + ":" + timeFrankfurt.getMinutes() + ":" + timeFrankfurt.getSeconds();
比如想取timeBeijing.getHours() 这个的值在delphi上显示,要怎么做呢?