怎么读取网页变量(0分)

  • 主题发起人 主题发起人 angel725
  • 开始时间 开始时间
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();


我该读出的是var后面定义的变量(如var timeBeijing),还是下面的timeBeijing.getHours() 这样的变量????
 
应该是timeBeijing.getHours()
var timeBeijing只是定义阿
 
谢谢,可是我怎么能在delphi中引用timeBeijing.getHours() 呢??
显示出时间!
 

Similar threads

I
回复
0
查看
843
import
I
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
881
import
I
后退
顶部