日日行,不怕千万里
摘要: // 数组扁平化处理 [1,2,[3,4,[5,6]]].flat(); // 对象扁平化处理 Object.flatten = function(obj){ var result = {}; function recurse(src, prop) { var toString = Object.prototype.toString; if (toString.call(src) == '[obj 阅读全文
posted @ 2019-10-14 16:06 GongXiaoZhu 阅读(699) 评论(0) 推荐(0) 编辑