<script>
function goodtime()
{
var ts = document.getElementById('ts').value;
ts = parseInt(ts);
var dt = new Date(ts);
document.getElementById('datetime').innerText = dt.toLocaleString();
return false;
}
</script>
Timetick <input id='ts'>
<a href="javascript:goodtime();">gogogo</a>
<span id='datetime'></span>
毫秒数到日期转换 javascript
最新推荐文章于 2024-02-19 10:35:15 发布