js 时分秒转化为毫秒整数

 var toMiner = function (hour, min, seconds) {
        var miner;
        miner = hour * (60 * 60 * 1000) + min * (60 * 1000) + seconds * 1000;
        return miner;
    };

var MODECONTENT = {
    toMiner: toMiner,//时分秒转化为毫秒整数(例如:00:30:00)
}

 

你可能感兴趣的:(代码集)