IE兼容性 ---解决find方法

//判断是否有find方法
if
(!Array.prototype.find){ Array.prototype.find = function(callback) { return callback && (this.filter(callback) || [])[0]; }; }

 

posted on 2020-07-01 13:32  苍狼一笑  阅读(745)  评论(0编辑  收藏  举报