subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
constructor: {
value: subClass,
enumerable: false,
writable: true,
configurable: true
}
});
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
(0, _create2.default)改变default函数中的thisdefault函数应该就是 Object.defineProperties其他的就不知道你想知道什么了。
这很明显是经过
babel转换之后的代码。看这个形式,我猜大概是在做类继承吧。