代码拉取完成,页面将自动刷新
/*! Copyright (c) 2017, Andrea Giammarchi, @WebReflection */
(function (F, O, R) {'use strict';
if ('implements' in F) return;
var
dPs = O.defineProperties,
gOPDs = O.getOwnPropertyDescriptors,
ownKeys = R.ownKeys
;
function Interface() {}
Interface.prototype = O.create(null);
function augmentFunction(target, implementable) {
var descriptors = gOPDs(implementable);
if (typeof implementable === 'function') {
delete descriptors.prototype;
dPs(target, descriptors);
dPs(target.prototype, gOPDs(implementable.prototype));
} else {
augmentObject(target.prototype, implementable, descriptors);
}
}
function augmentObject(target, implementable) {
if (implementable instanceof Interface) {
dPs(target, gOPDs(implementable));
} else {
for (var
descriptors = gOPDs(implementable),
keys = ownKeys(descriptors),
i = 0, length = keys.length; i < length; i++
) {
descriptors[keys[i]].enumerable = false;
}
dPs(target, descriptors);
}
}
O.defineProperty(
F, 'implements',
{
configurable: true,
value: function () {
for (var
isObject = this === O,
target = isObject ? {} : class extends this {},
descriptors = isObject ? target : target.prototype,
i = 0, l = arguments.length; i < l; i++
) {
dPs(descriptors, gOPDs(arguments[i]));
}
return target;
}
}
);
O.defineProperty(
F, 'interface',
{
configurable: true,
value: function () {
for (var
isClass = typeof arguments[arguments.length - 1] === 'function',
iFace = isClass ? class extends Interface {} : new Interface,
augment = isClass ? augmentFunction : augmentObject,
i = 0, length = arguments.length; i < length; i++
) {
augment(iFace, arguments[i]);
}
return iFace;
}
}
);
}(Function.prototype, Object, Reflect));
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。