且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检查夏令时

更新时间:2022-05-08 07:12:33

RobG在12/20上说了以下内容/ 2007 1:27 AM:


< snip>
RobG said the following on 12/20/2007 1:27 AM:

<snip>

function checkDST(d){
function checkDST(d) {



< snip>

<snip>


funct ion showDST(){


var x = isDST(new Date());
function showDST(){

var x = isDST(new Date());



isDST未定义。 FF2.0

对象预期。 IE7。


今天漫长的一天?


-

兰迪

机会有利于准备好的思想

comp.lang.javascript常见问题 - http ://jibbering.com/faq/index.html

Javascript***实践 - http://www.JavascriptToolbox.com/bestpractices/


12月20日下午4:45,Randy Webb< ; HikksNotAtH ... @ aol.comwrote:
On Dec 20, 4:45 pm, Randy Webb <HikksNotAtH...@aol.comwrote:

RobG在2007年12月20日上午1:27发表以下内容:


< snip>
RobG said the following on 12/20/2007 1:27 AM:

<snip>

function checkDST(d){
function checkDST(d) {



< snip>


<snip>


函数showDST(){
function showDST(){


var x = isDST(new Date()) ;
var x = isDST(new Date());



当然应该是:


var x = checkDST(new Date());

That should of course be:

var x = checkDST(new Date());


>

isDST未定义。 FF2.0

对象预期。 IE7。


今天漫长的一天?
>
isDST is not defined. FF2.0
Object Expected. IE7.

Long day today?



:-x bugger ...

我在发布前更改了该功能的名称 - 是否正常工作

给你?我暂时不能搞乱我的区域设置

了,我会尽可能多地测试它。

-

Rob

:-x bugger...
I changed the name of the function just before posting - does it work
for you? I can''t mess with my regional settings for a little while
yet, I''ll test it more when I can.
--
Rob


RobG在2007年12月20日凌晨2:01发表以下内容:
RobG said the following on 12/20/2007 2:01 AM:

12月20日下午4:45,Randy Webb< HikksNotAtH ... @ aol.comwrote:
On Dec 20, 4:45 pm, Randy Webb <HikksNotAtH...@aol.comwrote:

> RobG说以下12 / 20/2007 1:27 AM:

< snip>
>RobG said the following on 12/20/2007 1:27 AM:

<snip>

>> function checkDST(d){
>>function checkDST(d) {


< snip>

<snip>


>> function showDST(){
var x = isDST(new Date( ));
>>function showDST(){
var x = isDST(new Date());



当然应该是:


var x = checkDST(new Date());


That should of course be:

var x = checkDST(new Date());



我更改了该函数的名称。

I changed the name of the function.


> isDST未定义。 FF2.0
对象预期。 IE7。

今天漫长的一天?
>isDST is not defined. FF2.0
Object Expected. IE7.

Long day today?



:-x bugger ...


我在发布前更改了该功能的名称 - 是否有效

给你?我暂时不能搞乱我的区域设置

,我会尽可能地测试它。


:-x bugger...
I changed the name of the function just before posting - does it work
for you? I can''t mess with my regional settings for a little while
yet, I''ll test it more when I can.



我测试了大约5分钟,在我的计算机上愚弄日期。我

从未改变任何时区设置。我只能告诉你,它有适合我的位置的




-

兰迪

机会有利于准备好的心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq/index.html

Javascript***实践 - http://www.JavascriptToolbox.com/bestpractices/