标签:
<html>
<body>
<script type="text/javascript">
var d = new Date();
var sz = d.getMilliseconds();
sz = sz.toString();
alert(sz.length);
if(sz.length < 3){
sz = ‘0‘ + sz;
}
document.write(sz);
</script>
</body>
</html>
标签:
原文地址:http://www.cnblogs.com/wxm-bk/p/5720298.html