秒分转换器

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var s=156;
        alert(parseInt(s/60)+'分'+s%60+'秒');
    </script>
</head>
<body>

</body>
</html>

 

posted @ 2016-10-27 16:18  缘琪梦  阅读(180)  评论(0编辑  收藏  举报