关于取时间的月份(getMonth),年份(getYear)...????????? new Date(a.replace(/,/g,"\/|-")); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 只能先转换为标准时间再获取了。不过你可以转换成01 Jan 2002。把中间的-用javascript替换成空格去掉就可以了。<SCRIPT LANGUAGE="JavaScript"><!--var time = "01-Jan-2002";time2 = time.replace("-"," ");h = new Date(time2);document.write(h.getFullYear(),"年");document.write("<BR>");document.write(h.getMonth()+1,"月");document.write("<BR>");document.write(h.getDate(),"日");document.write("<BR>");//--></SCRIPT> 关于页内搜索 jquery 有没有办法在input框后边追加一个层? 这段加密的js怎样解密? 为什么window.open调用不成功 怎么在添加表格行的时候,某列是个按钮,用innerHTML老出问题 如何从几个action种选择一个??????? 如何在html中引用javascript变量 我有个问题很急,请大家帮帮忙!!!! 用input和div模拟select,click事件无效 诸如抢票,自动签到,之类的插件怎么做的 两个select控件之间如何传递数据? 紧急求救!
<SCRIPT LANGUAGE="JavaScript">
<!--
var time = "01-Jan-2002";
time2 = time.replace("-"," ");
h = new Date(time2);
document.write(h.getFullYear(),"年");
document.write("<BR>");
document.write(h.getMonth()+1,"月");
document.write("<BR>");
document.write(h.getDate(),"日");
document.write("<BR>");
//-->
</SCRIPT>