var d = parseInt( second / 3600 / 24 ); // console.log(d); var h = parseInt( second / 3600 %24 ); //小时 // console.log(h); var m = parseInt( second / 60 % 60 ); // console.log(m); var s = parseInt( second % 60 );
获取小时要取取,却不用除 / ?还有分和秒也是
骑驴的帅小伙
慕丝6966254
相关分类