2024年1月11日
摘要: function isNaN(num) { return typeof num "number" && num !== num; } 判断number: function isNumber(num) { return typeof num "number" && num num; } 阅读全文
posted @ 2024-01-11 17:50 laremehpe 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Array.prototype.forEach = function (cb) { for (var i = 0; i < this.length; i++) { cb(this[i], i, this); } }; Array.prototype.map = function (cb) { var 阅读全文
posted @ 2024-01-11 10:50 laremehpe 阅读(2) 评论(0) 推荐(0) 编辑