摘要: function cloneObject(obj) { var o = obj.constructor === Array ? [] : {}; for (var i in obj) { if (obj.hasOwnProperty(i)) { o[i] = typeof obj[i] === "object" ? cloneObject(... 阅读全文
posted @ 2017-09-08 14:46 _linka 阅读(128) 评论(0) 推荐(0) 编辑