执行过npm install命令的vue-element-admin源码
康凯
2022-05-20 aa4c235a8ca67ea8b731f90c951a465e92c0a865
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
IO.include("frame/Opt.js");
IO.include("frame/Chain.js");
IO.include("frame/Link.js");
IO.include("frame/String.js");
IO.include("frame/Hash.js");
IO.include("frame/Namespace.js");
//IO.include("frame/Reflection.js");
 
/** A few helper functions to make life a little easier. */
 
function defined(o) {
    return (o !== undefined);
}
 
function copy(o) { // todo check for circular refs
    if (o == null || typeof(o) != 'object') return o;
    var c = new o.constructor();
    for(var p in o)    c[p] = copy(o[p]);
    return c;
}
 
function isUnique(arr) {
    var l = arr.length;
    for(var i = 0; i < l; i++ ) {
        if (arr.lastIndexOf(arr[i]) > i) return false;
    }
    return true;
}
 
/** Returns the given string with all regex meta characters backslashed. */
RegExp.escapeMeta = function(str) {
    return str.replace(/([$^\\\/()|?+*\[\]{}.-])/g, "\\$1");
}