这代码有问题吗,运行一直不行,谷歌,IE都是空白的
var mydate=new Date();
var weekend=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
document.write(mydate.getFullYear()+"年"+mydate.getMonth()+"月"+(mydate.getDate()+1)+"日"+weekend.[mydate.getDay()]);
weekend.[mydate.getDay()]这里面多了一个点,直接写成weekend[mydate.getDay()];
var mydate=new Date();
var weekend=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
document.write(mydate.getFullYear()+"年"+mydate.getMonth()+"月"+(mydate.getDate()+1)+"日"+weekend[mydate.getDay()]);
你好,修改了,可是在HB编写之后,谷歌运行出来是空白的,这是什么问题呢,浏览器的缓存也清除了,还是这样