mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 06:49:27 +08:00
7 lines
1.1 KiB
JavaScript
7 lines
1.1 KiB
JavaScript
// HTMLCollection对象
|
|
bodavm.memory.globalobj['HTMLCollection'] = function HTMLCollection(){return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
|
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['HTMLCollection'], "HTMLCollection");
|
|
bodavm.toolsFunc.defineProperty('HTMLCollection', "length", {configurable:true, enumerable:true, get:function length (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['HTMLCollection'].prototype, "HTMLCollection", "length_get", arguments)}, set:undefined},'prototype');
|
|
bodavm.toolsFunc.defineProperty('HTMLCollection', "item", {configurable:true, enumerable:true, writable:true, value:function item (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['HTMLCollection'].prototype, "HTMLCollection", "item", arguments)}},'prototype');
|
|
bodavm.toolsFunc.defineProperty('HTMLCollection', "namedItem", {configurable:true, enumerable:true, writable:true, value:function namedItem (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['HTMLCollection'].prototype, "HTMLCollection", "namedItem", arguments)}},'prototype');
|