mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
49 lines
1.6 KiB
JavaScript
49 lines
1.6 KiB
JavaScript
// HTMLLabelElement对象
|
|
|
|
HTMLLabelElement = function HTMLLabelElement() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo' && (this instanceof HTMLLabelElement)) {
|
|
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
|
|
}
|
|
;
|
|
bodavm.toolsFunc.symbolProperty(this);
|
|
if (arg != 'bobo') {
|
|
console.log_copy('HTMLLabelElement 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodavm.toolsFunc.safeProto(HTMLLabelElement, "HTMLLabelElement");
|
|
HTMLLabelElement.prototype.__proto__ = HTMLElement.prototype;
|
|
HTMLLabelElement.__proto__ = HTMLElement;
|
|
bodavm.toolsFunc.defineProperty(HTMLLabelElement.prototype, "form", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function form() {
|
|
return bodavm.toolsFunc.dispatch(this, HTMLLabelElement.prototype, "HTMLLabelElement", "form_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(HTMLLabelElement.prototype, "htmlFor", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function htmlFor() {
|
|
return bodavm.toolsFunc.dispatch(this, HTMLLabelElement.prototype, "HTMLLabelElement", "htmlFor_get", arguments);
|
|
},
|
|
set: function htmlFor() {
|
|
return bodavm.toolsFunc.dispatch(this, HTMLLabelElement.prototype, "HTMLLabelElement", "htmlFor_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(HTMLLabelElement.prototype, "control", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function control() {
|
|
return bodavm.toolsFunc.dispatch(this, HTMLLabelElement.prototype, "HTMLLabelElement", "control_get", arguments);
|
|
},
|
|
set: undefined
|
|
}); |