mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 11:41:11 +08:00
46 lines
1.7 KiB
JavaScript
46 lines
1.7 KiB
JavaScript
// HTMLBaseElement对象
|
|
|
|
bodaEnv.memory.globlProtoObj["HTMLBaseElement"] = function HTMLBaseElement() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo') {
|
|
bodaEnv.toolsFunc.console_copy('HTMLBaseElement 实例化对象 --->', bodaEnv.toolsFunc.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodaEnv.toolsFunc.safeProto(bodaEnv.memory.globlProtoObj["HTMLBaseElement"], "HTMLBaseElement");
|
|
bodaEnv.memory.globlProtoObj["HTMLBaseElement"].prototype.__proto__ = bodaEnv.memory.globlProtoObj["HTMLElement"].prototype;
|
|
bodaEnv.memory.globlProtoObj["HTMLBaseElement"].__proto__ = bodaEnv.memory.globlProtoObj["HTMLElement"];
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLBaseElement"].prototype, "href", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
href() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLBaseElement"].prototype, "HTMLBaseElement", "href_get", arguments);
|
|
}
|
|
}.href,
|
|
set: {
|
|
href() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLBaseElement"].prototype, "HTMLBaseElement", "href_set", arguments);
|
|
}
|
|
}.href
|
|
});
|
|
bodaEnv.toolsFunc.defineProperty(bodaEnv.memory.globlProtoObj["HTMLBaseElement"].prototype, "target", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: {
|
|
target() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLBaseElement"].prototype, "HTMLBaseElement", "target_get", arguments);
|
|
}
|
|
}.target,
|
|
set: {
|
|
target() {
|
|
return bodaEnv.toolsFunc.dispatch(this, bodaEnv.memory.globlProtoObj["HTMLBaseElement"].prototype, "HTMLBaseElement", "target_set", arguments);
|
|
}
|
|
}.target
|
|
}); |