摘要: 为元素添加on方法 Element.prototype.on = Element.prototype.addEventListener; NodeList.prototype.on = function (event, fn) {、 []['forEach'].call(this, function 阅读全文
posted @ 2021-04-08 17:29 czfeng 阅读(117) 评论(0) 推荐(0) 编辑
摘要: function getDuration(value,dateFormat){ let hour = parseInt((value) / 3600); if (hour<10) {//时 hour = "0" + hour; } var minute = parseInt((value % 360 阅读全文
posted @ 2021-04-08 17:16 czfeng 阅读(475) 评论(0) 推荐(0) 编辑