呼伦湖
呼伦湖
全部文章
题解
C/C++(1)
归档
标签
去牛客网
登录
/
注册
Long
全部文章
/ 题解
(共2篇)
题解 | #数组去重# Set方法和reduce方法
使用Set集合: Array.prototype.uniq = function () { return Array.from(new Set(this)); } reduce+includes方法: Array.prototype.uniq = function () { return...
2021-08-18
0
303
题解 | #dom 节点查找#
很简单,用contains()方法 function commonParentNode(oNode1, oNode2) { while (true) { oNode1 = oNode1.parentNode; // Node.contains(): 一个节点是否是给定节点的子节点...
2021-08-18
2
423