diff --git a/src/main/webapp/js/globalUtils.js b/src/main/webapp/js/globalUtils.js index 5471d470a46ece139c77225da03a5e3d1d338560..1edfedf39d9eae77a9c8d7a949d512a26a9ff392 100644 --- a/src/main/webapp/js/globalUtils.js +++ b/src/main/webapp/js/globalUtils.js @@ -474,64 +474,64 @@ var GLOBAL_UTILS = { return arr; } }, - //set集合工具 - setUtils: { - /** - * 判断一个set是否为另外一个set的父集合 - * @param set 父 - * @param subset 子集 - * @returns {boolean} - */ - isSuperset: function(set, subset){ - for (var elem of subset) { - if (!set.has(elem)) { - return false; - } - } - return true; - }, - /** - * 两个set合集 - * @param setA - * @param setB - * @returns {Set} - */ - union: function(setA, setB){ - var _union = new Set(setA); - for (var elem of setB) { - _union.add(elem); - } - return _union; - }, - /** - * 两个set的交集 - * @param setA - * @param setB - * @returns {Set} - */ - intersection: function(setA, setB){ - var _intersection = new Set(); - for (var elem of setB) { - if (setA.has(elem)) { - _intersection.add(elem); - } - } - return _intersection; - }, - /** - * 两个set的不同元素集合 - * @param setA - * @param setB - * @returns {Set} - */ - difference:function(setA, setB){ - var _difference = new Set(setA); - for (var elem of setB) { - _difference.delete(elem); - } - return _difference; - } - }, + // //set集合工具 + // setUtils: { + // /** + // * 判断一个set是否为另外一个set的父集合 + // * @param set 父 + // * @param subset 子集 + // * @returns {boolean} + // */ + // isSuperset: function(set, subset){ + // for (var elem of subset) { + // if (!set.has(elem)) { + // return false; + // } + // } + // return true; + // }, + // /** + // * 两个set合集 + // * @param setA + // * @param setB + // * @returns {Set} + // */ + // union: function(setA, setB){ + // var _union = new Set(setA); + // for (var elem of setB) { + // _union.add(elem); + // } + // return _union; + // }, + // /** + // * 两个set的交集 + // * @param setA + // * @param setB + // * @returns {Set} + // */ + // intersection: function(setA, setB){ + // var _intersection = new Set(); + // for (var elem of setB) { + // if (setA.has(elem)) { + // _intersection.add(elem); + // } + // } + // return _intersection; + // }, + // /** + // * 两个set的不同元素集合 + // * @param setA + // * @param setB + // * @returns {Set} + // */ + // difference:function(setA, setB){ + // var _difference = new Set(setA); + // for (var elem of setB) { + // _difference.delete(elem); + // } + // return _difference; + // } + // }, //ajax工具,是对jquery的ajax方法进一步封装 ajaxUtils: { /**