Ran*_*per 2 javascript firefox internet-explorer
我正在使用JavaScript中的onclick事件构建今天的日期.当我设置.value属性时:
var now = new Date;
...Value = now.getMonth() + "/" + now.getDate() + "/" + now.getYear();
Run Code Online (Sandbox Code Playgroud)
这产生:9/9/2009我期待:10/9/2009
这种情况发生在IE和Firefox中.我电脑上的系统时间是正确的.有任何想法吗?