jsRuntimeObject()获取ie里面自定义函数或者属性的集合_javascript技巧
时间:2021-07-01 10:21:17
帮助过:16人阅读
代码如下:
var gb1 = 10;
this.gb2 = 20;
function gb3() {};
(function() {
var ro = RuntimeObject(),
ret = [],
for(p in ro) {
ret.push(p);
}
alert('global var List: ' + ret.join('\n'));
})();