<script type="text/javascript">
var s = ‘/Date(1410019200000+0800)/ ‘;
s.replace(/Date\([\d+]+\)/, function (a) { eval(‘d = new ‘ + a) });
alert(d.toLocaleString());
</script>
输出的结果为:2014-9-7 00:00:00
时间: 2024-10-10 08:36:03
<script type="text/javascript">
var s = ‘/Date(1410019200000+0800)/ ‘;
s.replace(/Date\([\d+]+\)/, function (a) { eval(‘d = new ‘ + a) });
alert(d.toLocaleString());
</script>
输出的结果为:2014-9-7 00:00:00