日常必备的JS工具函数
摘要:为元素添加on方法 Element.prototype.on = Element.prototype.addEventListener; NodeList.prototype.on = function (event, fn) { []['forEach'].call(this, function
阅读全文
posted @ 2021-09-12 13:34
posted @ 2021-09-12 13:34
posted @ 2021-09-02 11:20