<script language = "javascript">
function ConvertTimeStr(strTime)
{
pos = strTime.indexOf(".");
strTime = strTime.substring(0,pos);
strTime = strTime.replace("T"," ");
return strTime;
}
alert(ConvertTimeStr("03-09-28T10:55:12.0000000+08.00"));
</script>
代码已经经过测试,可拷贝直接运行 。 。 。 。
function ConvertTimeStr(strTime)
{
pos = strTime.indexOf(".");
strTime = strTime.substring(0,pos);
strTime = strTime.replace("T"," ");
return strTime;
}
alert(ConvertTimeStr("03-09-28T10:55:12.0000000+08.00"));
</script>
代码已经经过测试,可拷贝直接运行 。 。 。 。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货