日期:2014-05-16  浏览次数:20290 次

我的JS
字符串转化日期
<script>
var s="2010-5-18 12:30:20";
var t=new Date(s.replace(/-/g,"/"));
alert(t.getTime());
</script>