mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
43 lines
1.4 KiB
JavaScript
43 lines
1.4 KiB
JavaScript
// CSSPageRule对象
|
|
|
|
CSSPageRule = function CSSPageRule() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo' && (this instanceof CSSPageRule)) {
|
|
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
|
|
}
|
|
;
|
|
bodavm.toolsFunc.symbolProperty(this);
|
|
if (arg != 'bobo') {
|
|
console.log_copy('CSSPageRule 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodavm.toolsFunc.safeProto(CSSPageRule, "CSSPageRule");
|
|
CSSPageRule.prototype.__proto__ = CSSRule.prototype;
|
|
CSSPageRule.__proto__ = CSSRule;
|
|
bodavm.toolsFunc.defineProperty(CSSPageRule.prototype, "selectorText", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function selectorText() {
|
|
return bodavm.toolsFunc.dispatch(this, CSSPageRule.prototype, "CSSPageRule", "selectorText_get", arguments);
|
|
},
|
|
set: function selectorText() {
|
|
return bodavm.toolsFunc.dispatch(this, CSSPageRule.prototype, "CSSPageRule", "selectorText_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(CSSPageRule.prototype, "style", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function style() {
|
|
return bodavm.toolsFunc.dispatch(this, CSSPageRule.prototype, "CSSPageRule", "style_get", arguments);
|
|
},
|
|
set: function style() {
|
|
return bodavm.toolsFunc.dispatch(this, CSSPageRule.prototype, "CSSPageRule", "style_set", arguments);
|
|
}
|
|
}); |