1。
JavaScript 的事件 好click;dblclick ;等等,我们需要手动click 元素才会响应,
有没有办法用程序触发它呢?
2。
如何编历一个对象下的所有方法(知道它需要的参个数和类型),属性,子对象,呢?--当要分开。JScript code    var str; for(var method in document) { str += document[method] } alert(str);上面的代码虽然 看到方法,但不见参数,
求 编历方法+参数;
求 编历子对象:
求 编历所有属性:

解决方案 »

  1.   


    <input type="button" id="bt1" value="bt1" onclick="alert('aaa');">
    <br>
    <input type="button" id="bt1" value="bt2" onclick="document.getElementById('bt1').click();">
      

  2.   

    为什么我下面的不行呢?$(function(){
    $("#clickLink").click(function(){
    $("#redBaidu").click();
    });
    });
    <a href="http://www.baidu.com" id="redBaidu"></a>
    <br />
    <input type="button" id="clickLink" value="bt1" />
      

  3.   

    我知道了
    下面的改为这样就行了  $("#redBaidu")[0].click();
    请到第二题
      

  4.   

    var arr; 
    for(var key in document) { arr.push("属性是"+key+",其值为"+document.key);} 
    alert(arr.join(','));
      

  5.   


    你的方法我试了,你看
    下面是我经过排板后的结果
    [color=#333300]
    属性是location                               其值为undefined                       
    属性是querySelector                          其值为undefined                  
    属性是querySelectorAll                       其值为undefined               
    属性是evaluate                               其值为undefined                       
    属性是createExpression                       其值为undefined               
    属性是createNSResolver                       其值为undefined               
    属性是addEventListener                       其值为undefined               
    属性是removeEventListener                    其值为undefined            
    属性是dispatchEvent                          其值为undefined                  
    属性是body                                   其值为undefined                           
    属性是anchors                                其值为undefined                        
    属性是links                                  其值为undefined                          
    属性是URL                                    其值为undefined                            
    属性是forms                                  其值为undefined                          
    属性是cookie                                 其值为undefined                         
    属性是images                                 其值为undefined                         
    属性是domain                                 其值为undefined                         
    属性是designMode                             其值为undefined                     
    属性是write                                  其值为undefined                          
    属性是writeln                                其值为undefined                        
    属性是getElementsByName                      其值为undefined              
    属性是getSelection                           其值为undefined                   
    属性是documentElement                        其值为undefined                
    属性是implementation                         其值为undefined                 
    属性是doctype                                其值为undefined                        
    属性是documentURI                            其值为undefined                    
    属性是defaultView                            其值为undefined                    
    属性是title                                  其值为undefined                          
    属性是referrer                               其值为undefined                       
    属性是activeElement                          其值为undefined                  
    属性是getElementsByTagName                   其值为undefined           
    属性是getElementsByTagNameNS                 其值为undefined         
    属性是getElementById                         其值为undefined                 
    属性是createDocumentFragment                 其值为undefined         
    属性是createElement                          其值为undefined                  
    属性是createElementNS                        其值为undefined                
    属性是importNode                             其值为undefined                     
    属性是createTextNode                         其值为undefined                 
    属性是adoptNode                              其值为undefined                      
    属性是createNodeIterator                     其值为undefined             
    属性是createEvent                            其值为undefined                    
    属性是getElementsByClassName                 其值为undefined         
    属性是hasFocus                               其值为undefined                       
    属性是elementFromPoint                       其值为undefined               
    属性是nodeName                               其值为undefined                       
    属性是nodeValue                              其值为undefined                      
    属性是nodeType                               其值为undefined                       
    属性是parentNode                             其值为undefined                     
    属性是childNodes                             其值为undefined                     
    属性是firstChild                             其值为undefined                     
    属性是lastChild                              其值为undefined                      
    属性是previousSibling                        其值为undefined                
    属性是nextSibling                            其值为undefined                    
    属性是attributes                             其值为undefined                     
    属性是ownerDocument                          其值为undefined                  
      

  6.   

    属性是namespaceURI                           其值为undefined                   
    属性是prefix                                 其值为undefined                         
    属性是localName                              其值为undefined                      
    属性是baseURI                                其值为undefined                        
    属性是textContent                            其值为undefined                    
    属性是setUserData                            其值为undefined                    
    属性是getUserData                            其值为undefined                    
    属性是insertBefore                           其值为undefined                   
    属性是replaceChild                           其值为undefined                   
    属性是removeChild                            其值为undefined                    
    属性是appendChild                            其值为undefined                    
    属性是hasChildNodes                          其值为undefined                  
    属性是cloneNode                              其值为undefined                      
    属性是normalize                              其值为undefined                      
    属性是isSupported                            其值为undefined                    
    属性是hasAttributes                          其值为undefined                  
    属性是compareDocumentPosition                其值为undefined        
    属性是isSameNode                             其值为undefined                     
    属性是lookupPrefix                           其值为undefined                   
    属性是isDefaultNamespace                     其值为undefined             
    属性是lookupNamespaceURI                     其值为undefined             
    属性是isEqualNode                            其值为undefined                    
    属性是readyState                             其值为undefined                     
    属性是createComment                          其值为undefined                  
    属性是createCDATASection                     其值为undefined             
    属性是createProcessingInstruction            其值为undefined    
    属性是createAttribute                        其值为undefined                
    属性是createAttributeNS                      其值为undefined              
    属性是inputEncoding                          其值为undefined                  
    属性是xmlEncoding                            其值为undefined                    
    属性是xmlStandalone                          其值为undefined                  
    属性是xmlVersion                             其值为undefined                     
    属性是createRange                            其值为undefined                    
    属性是createTreeWalker                       其值为undefined               
    属性是characterSet                           其值为undefined                   
    属性是dir                                    其值为undefined                            
    属性是lastModified                           其值为undefined                   
    属性是styleSheets                            其值为undefined                    
    属性是preferredStyleSheetSet                 其值为undefined         
    属性是selectedStyleSheetSet                  其值为undefined          
    属性是lastStyleSheetSet                      其值为undefined              
    属性是styleSheetSets                         其值为undefined                 
    属性是enableStyleSheetsForSet                其值为undefined        
    属性是contentType                            其值为undefined                    
    属性是currentScript                          其值为undefined                  
    属性是releaseCapture                         其值为undefined                 
    属性是mozSetImageElement                     其值为undefined             
    属性是ELEMENT_NODE                           其值为undefined                   
    属性是ATTRIBUTE_NODE                         其值为undefined                 
    属性是TEXT_NODE                              其值为undefined                      
    属性是CDATA_SECTION_NODE                     其值为undefined             
    属性是ENTITY_REFERENCE_NODE                  其值为undefined          
    属性是ENTITY_NODE                            其值为undefined                    
    属性是PROCESSING_INSTRUCTION_NODE            其值为undefined    
    属性是COMMENT_NODE                           其值为undefined                   
    属性是DOCUMENT_NODE                          其值为undefined                  
    属性是DOCUMENT_TYPE_NODE                     其值为undefined             
    属性是DOCUMENT_FRAGMENT_NODE                 其值为undefined         
    属性是NOTATION_NODE                          其值为undefined                  
    属性是DOCUMENT_POSITION_DISCONNECTED         其值为undefined 
    属性是DOCUMENT_POSITION_PRECEDING            其值为undefined    
    属性是DOCUMENT_POSITION_FOLLOWING            其值为undefined    
    属性是DOCUMENT_POSITION_CONTAINS             其值为undefined     
    属性是DOCUMENT_POSITION_CONTAINED_BY         其值为undefined 
    属性是DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC        其值为undefined
    属性是compatMode                             其值为undefined                     
    属性是head                                   其值为undefined                           
    属性是embeds                                 其值为undefined                         
    属性是plugins                                其值为undefined                        
    属性是open                                   其值为undefined                           
    属性是close                                  其值为undefined                          
    属性是execCommand                            其值为undefined                    
    属性是execCommandShowHelp                    其值为undefined            
    属性是queryCommandEnabled                    其值为undefined            
    属性是queryCommandIndeterm                   其值为undefined           
    属性是queryCommandState                      其值为undefined              
    属性是queryCommandSupported                  其值为undefined          
    属性是queryCommandText                       其值为undefined               
    属性是queryCommandValue                      其值为undefined              
    属性是fgColor                                其值为undefined                        
    属性是bgColor                                其值为undefined                        
    属性是linkColor                              其值为undefined                      
    属性是vlinkColor                             其值为undefined                     
    属性是alinkColor                             其值为undefined                     
    属性是applets                                其值为undefined                        
    属性是clear                                  其值为undefined                          
    属性是captureEvents                          其值为undefined                  
    属性是releaseEvents                          其值为undefined                  
    属性是routeEvent                             其值为undefined                     
    属性是getAnonymousNodes                      其值为undefined              
    属性是getAnonymousElementByAttribute         其值为undefined 
    属性是addBinding                             其值为undefined                     
    属性是removeBinding                          其值为undefined                  
    属性是getBindingParent                       其值为undefined               
    属性是loadBindingDocument                    其值为undefined            
    [/color]

    你可以看出它把方法,对象 也作成属性了!!

    能不能知的道它是不是属性,
    如果是方法,我还要调出它的方法有多少个参数,----好让我编历调用它!!!
    如果是对象,我想知道这个对象的属性和方法,甚至子对象.
      

  7.   

    typeof:返回字符串“object”,“function”,“undefined”等,当是对象时,还可以使用对象的constructor属性进一步判断其构造型,如果是function,若为用户函数则返回整个函数代码字符串;若为系统函数,则返回的函数代码字符串中,函数体用native code替代
      

  8.   

    下面是我的演试!
    $("#btntest").click(function(){
    var arr = new Array();
    for (var key in document) {
    if ("function" == typeof (document[key])) {
    arr.push("函数名称:\t" + key + "();");
    }
    }
    $("#txtOut").val(arr.join('\n'));
    });
    运行的结果如下
    函数名称: querySelector();
    函数名称: querySelectorAll();
    函数名称: evaluate();
    函数名称: createExpression();
    函数名称: createNSResolver();
    函数名称: addEventListener();
    函数名称: removeEventListener();
    函数名称: dispatchEvent();
    函数名称: write();
    函数名称: writeln();
    函数名称: getElementsByName();
    函数名称: getSelection();
    函数名称: getElementsByTagName();
    函数名称: getElementsByTagNameNS();
    函数名称: getElementById();
    函数名称: createDocumentFragment();
    函数名称: createElement();
    函数名称: createElementNS();
    函数名称: importNode();
    函数名称: createTextNode();
    函数名称: adoptNode();
    函数名称: createNodeIterator();
    函数名称: createEvent();
    函数名称: getElementsByClassName();
    函数名称: hasFocus();
    函数名称: elementFromPoint();
    函数名称: setUserData();
    函数名称: getUserData();
    函数名称: insertBefore();
    函数名称: replaceChild();
    函数名称: removeChild();
    函数名称: appendChild();
    函数名称: hasChildNodes();
    函数名称: cloneNode();
    函数名称: normalize();
    函数名称: isSupported();
    函数名称: hasAttributes();
    函数名称: compareDocumentPosition();
    函数名称: isSameNode();
    函数名称: lookupPrefix();
    函数名称: isDefaultNamespace();
    函数名称: lookupNamespaceURI();
    函数名称: isEqualNode();
    函数名称: createComment();
    函数名称: createCDATASection();
    函数名称: createProcessingInstruction();
    函数名称: createAttribute();
    函数名称: createAttributeNS();
    函数名称: createRange();
    函数名称: createTreeWalker();
    函数名称: enableStyleSheetsForSet();
    函数名称: releaseCapture();
    函数名称: mozSetImageElement();
    函数名称: open();
    函数名称: close();
    函数名称: execCommand();
    函数名称: execCommandShowHelp();
    函数名称: queryCommandEnabled();
    函数名称: queryCommandIndeterm();
    函数名称: queryCommandState();
    函数名称: queryCommandSupported();
    函数名称: queryCommandText();
    函数名称: queryCommandValue();
    函数名称: clear();
    函数名称: captureEvents();
    函数名称: releaseEvents();
    函数名称: routeEvent();
    函数名称: getAnonymousNodes();
    函数名称: getAnonymousElementByAttribute();
    函数名称: addBinding();
    函数名称: removeBinding();
    函数名称: getBindingParent();
    函数名称: loadBindingDocument();

    用你的方法,我可以做到对函数的过虚;但是我不能知道它有多少个参数?和参数类型?和调用它?
    求解?
    谢谢!
      

  9.   

    function(para1,para2,para3,para4,para5,para6,para7,para8,para9)
    你function(para1)照样可以调用。
      

  10.   

    楼上,你的回答不够好。
    我的目标:
    实现 javascript 函数 大查阅,专对我这样的初学者,做项目时遇到不懂的JavaSript 查阅试验运行的

    下面 是描述过程.我在一个文体框中输入一个对象
    自动编历该对象的所有方法。----上面已经实现了方法 展现在 <select> 控件内
    我在<select> 选择其中的一个函数。动态产生n 个<input type='text'id='para+i'/>的东东来等待我的输入参数。
    我一点击“运行”,就调用我选择的函数,执行。
    并在 <input type='text'>的value 展示运行函数返回的数据!高手啊高手,快出现吧!
      

  11.   

    楼主的问题感觉是要做一个javascript的编辑器吧?
    就像myeclipse的编辑器提示java方法一样提示javascript函数?
      

  12.   

    执行下下面一段代码,看是不是你想要的结果
    function ArgTest(a, b){ 
       var i, s = "The ArgTest function expected "; 
       var numargs = arguments.length;     // 获取被传递参数的数值(即 实参个数)。 
       var expargs = ArgTest.length;       // 获取期望参数的数值(即 形参个数)。 
       if (expargs < 2) 
      s += expargs + " argument. "; 
       else 
      s += expargs + " arguments. "; 
      if (numargs < 2) 
     s += numargs + " was passed."; 
       else 
     s += numargs + " were passed."; 
       s += "\n\n" 
      for (i =0 ; i < numargs; i++){      // 获取参数内容。 
       s += "  Arg " + i + " = " + arguments[i] + "\n"; 
       } 
      return(s);                          // 返回参数列表。 
    }
    alert(ArgTest("dd","cccc"));
      

  13.   

    你说的非常正确!
    我不止想做‘编辑器’
    而是不断完善上面的功能,实现象 visual studio 一个样 手动拖‘按钮’“redio ”等等。
    进入 html 页,变代码。
    双击它 自动生成  Jquery 写的事件直接上网找样式套用!直看运行效果。现在遇到了难题了, 请你帮帮我吧,太谢谢了!
      

  14.   

    js里面参数都是泛型,没有类型
    楼主的问题好像用纯js无法解决吧?
      

  15.   

    如 document.getElementById() 方法要一个参数 ,类型是String
      

  16.   

    自已看下 YUI3 的 event-simulate.js
      

  17.   

    纯js 做高级编辑器 ? 好像 不可以吧 ,有些功能 js 无法适应
      

  18.   

    不完全是,
    主要是
    快速页面布局!
    支持控件拖动
    自动套用 常用的Css 样式;
    尽可以少写代码,做用鼠标;
    用字典格式数据,和AJAX 方式发到后台;--前台后台分离!
      

  19.   


    var aObject = window
    for (var aName in aObject){
    if ( aObject[aName] == null ) {
    document.write(aName + " = null<br>");
    }else if ( aObject[aName].constructor == window.Function ) {
    document.write(aName + " = " + aObject[aName] + "<br>");
    }else{
    document.write(aName + " = " + aObject[aName] + "<br>");
    }
    }
    非IE中,顶级var是无法被for in便例到的,但是FF可以,顶级的var实际就等于window.xx
    而非IE浏览器中,部分对象for in是会发生错误的,并且部分对象aObject[aName]也会发生错误
    部分非IE浏览器中获得的字符也会有非常规字符,导致获取的东西出现问题……
      

  20.   

    我想问一下,我的这段拖动div的代码什么地方有问题啊,在ie里面正常,在ff下就是停下再拖就不行了,但如果在div中加入文本就可以了,为什么会这样啊?请各位高手指教.<html><head>
    <script language="JavaScript" type="text/javascript" src="jquery-1.6.4.js"></script>
    <style></style>
    </head>
    <body><div id="rect" style="width:200px;height:200px;position:absolute;background-color:pink;">

    </div><div id="display" style="position:absolute;top:300px;"></div>
    </body>
    </html><script>$(init);function init(){
    rectEvent();
    }function rectEvent(){
    var slider = $("#rect");
    var downFlag = false; var offX;

    slider.mousedown(function(e){
    downFlag = true;
    var event = getEvent(e);
    offX = getOffsetX(event); }); slider.mouseup(function(){
    downFlag = false;
    }); slider.mouseout(function(){
    downFlag = false;
    }); slider.mousemove(function(e){
    var event = getEvent(e);

    if(!downFlag){
    return false;
    }

    var left = event.clientX - offX;
    $("#display").text(left);
    slider.css("left",left);
    });}
    function getEvent(event){
    var event = event ? event : window.event;
    return event;
    }function getOffsetX(event){
    var off_X = event.offsetX ? event.offsetX : event.layerX;
    return off_X;
    }</script>如果我在rect div随便加入文本如:11,这样就可以了,我一直不太明白为什么会这样?
      

  21.   

    这就是你的方法改写板
    $("#btnPara").click(function() {
    var aObject = window.document.body;
    var strOut = null;
    for (var aName in aObject) {
    if (aObject[aName] == null) {
    strOut +="//null"+"\n\n"+ aName + " = null";
    }
    else if (aObject[aName].constructor == window.Function) {
    strOut +="//函数"+"\n"+ aName + " = " + aObject[aName] + "\n";
    }
    else {
    strOut +="/*\n//---aObject[aName].constructor---\n"+aObject[aName].constructor+"*/\n\n" +aName + " = " + aObject[aName] + "\n";
    }
    }
    $("#txtOut").val(strOut);
    });
    我用你的方法搜出一大堆东西,
    不知怎么看,谢谢了!null//函数
    querySelector = function querySelector() {
        [native code]
    }
    //函数
    querySelectorAll = function querySelectorAll() {
        [native code]
    }
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/scrollTop = 0
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/scrollLeft = 0
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/scrollHeight = 341
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/scrollWidth = 1008
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/clientTop = 0
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/clientLeft = 0
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/clientHeight = 341
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/clientWidth = 1008
    /*
    //---aObject[aName].constructor---
    [object HTMLTextAreaElement]*/firstElementChild = [object HTMLTextAreaElement]
    /*
    //---aObject[aName].constructor---
    [object HTMLBRElement]*/lastElementChild = [object HTMLBRElement]
    /*
    //---aObject[aName].constructor---
    [object HTMLHeadElement]*/previousElementSibling = [object HTMLHeadElement]
    //nullnextElementSibling = null/*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/childElementCount = 11
    /*
    //---aObject[aName].constructor---
    function Object() {
        [native code]
    }*/children = [object HTMLCollection]
    /*
    //---aObject[aName].constructor---
    function Object() {
        [native code]
    }*/classList = 
    //函数
    setCapture = function setCapture() {
        [native code]
    }
    //函数
    getElementsByClassName = function getElementsByClassName() {
        [native code]
    }
    //函数
    getClientRects = function getClientRects() {
        [native code]
    }
    //函数
    getBoundingClientRect = function getBoundingClientRect() {
        [native code]
    }
    //函数
    releaseCapture = function releaseCapture() {
        [native code]
    }
    //函数
    mozMatchesSelector = function mozMatchesSelector() {
        [native code]
    }
    //函数
    addEventListener = function addEventListener() {
        [native code]
    }
    //函数
    removeEventListener = function removeEventListener() {
        [native code]
    }
    //函数
    dispatchEvent = function dispatchEvent() {
        [native code]
    }
    /*
    //---aObject[aName].constructor---
    function Object() {
        [native code]
    }*/style = [object CSSStyleDeclaration]
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/contentEditable = inherit
    /*
    //---aObject[aName].constructor---
    function Boolean() {
        [native code]
    }*/isContentEditable = false
    //nulloffsetParent = null/*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/innerHTML = 
    <textarea id="txtCode" rows="10" cols="100"></textarea>
    <br>
    <input id="btnRun" value="运行" type="button">
    <input id="btnhtmlEncode" value="htmlEncode" type="button">
    <input id="btnhtmlDecode" value="htmlDecode" type="button">
    <input id="btntest" value="试试" type="button">
    <input id="btnstart" value="开始" onclick="start();" type="button">
    <input id="btnPara" value="老家伙" onclick="start();" type="button">
    <br>
    <textarea id="txtOut" rows="5" cols="100"></textarea>
    <br>/*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/offsetLeft = 0
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/offsetTop = 0
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/offsetHeight = 341
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/offsetWidth = 1008
    //函数
    scrollIntoView = function scrollIntoView() {
        [native code]
    }
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/id = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/title = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/lang = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/dir = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/className = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/accessKey = 
    //函数
    blur = function blur() {
        [native code]
    }
    //函数
    focus = function focus() {
        [native code]
    }
    //函数
    click = function click() {
        [native code]
    }
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/tagName = BODY
    //函数
    removeAttributeNS = function removeAttributeNS() {
        [native code]
    }
    //函数
    removeAttribute = function removeAttribute() {
        [native code]
    }
    //函数
    getAttribute = function getAttribute() {
        [native code]
    }
    //函数
    getElementsByTagName = function getElementsByTagName() {
        [native code]
    }
    //函数
    setAttribute = function setAttribute() {
        [native code]
    }
    //函数
    getElementsByTagNameNS = function getElementsByTagNameNS() {
        [native code]
    }
    //函数
    hasAttributeNS = function hasAttributeNS() {
        [native code]
    }
    //函数
    setAttributeNS = function setAttributeNS() {
        [native code]
    }
    //函数
    hasAttribute = function hasAttribute() {
        [native code]
    }
    //函数
    getAttributeNS = function getAttributeNS() {
        [native code]
    }
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/nodeName = BODY
    //nullnodeValue = null/*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/nodeType = 1
    /*
    //---aObject[aName].constructor---
    [object HTMLHtmlElement]*/parentNode = [object HTMLHtmlElement]
    /*
    //---aObject[aName].constructor---
    function Object() {
        [native code]
    }*/-------- 一编只能这样长的了 ----------------接下--------------------
      

  22.   

    -------- 一编只能这样长的了 ----------------接上--------------------childNodes = [object NodeList]
    /*
    //---aObject[aName].constructor---
    [object Text]*/firstChild = [object Text]
    /*
    //---aObject[aName].constructor---
    [object Text]*/lastChild = [object Text]
    /*
    //---aObject[aName].constructor---
    [object Text]*/previousSibling = [object Text]
    //nullnextSibling = null/*
    //---aObject[aName].constructor---
    function Object() {
        [native code]
    }*/attributes = [object NamedNodeMap]
    /*
    //---aObject[aName].constructor---
    [object HTMLDocument]*/ownerDocument = [object HTMLDocument]
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/namespaceURI = http://www.w3.org/1999/xhtml
    //nullprefix = null/*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/localName = body
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/baseURI = http://localhost:3194/py.htm
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/textContent = 










    //函数
    setUserData = function setUserData() {
        [native code]
    }
    //函数
    getUserData = function getUserData() {
        [native code]
    }
    //函数
    insertBefore = function insertBefore() {
        [native code]
    }
    //函数
    replaceChild = function replaceChild() {
        [native code]
    }
    //函数
    removeChild = function removeChild() {
        [native code]
    }
    //函数
    appendChild = function appendChild() {
        [native code]
    }
    //函数
    hasChildNodes = function hasChildNodes() {
        [native code]
    }
    //函数
    cloneNode = function cloneNode() {
        [native code]
    }
    //函数
    normalize = function normalize() {
        [native code]
    }
    //函数
    isSupported = function isSupported() {
        [native code]
    }
    //函数
    hasAttributes = function hasAttributes() {
        [native code]
    }
    //函数
    compareDocumentPosition = function compareDocumentPosition() {
        [native code]
    }
    //函数
    isSameNode = function isSameNode() {
        [native code]
    }
    //函数
    lookupPrefix = function lookupPrefix() {
        [native code]
    }
    //函数
    isDefaultNamespace = function isDefaultNamespace() {
        [native code]
    }
    //函数
    lookupNamespaceURI = function lookupNamespaceURI() {
        [native code]
    }
    //函数
    isEqualNode = function isEqualNode() {
        [native code]
    }
    //函数
    getAttributeNode = function getAttributeNode() {
        [native code]
    }
    //函数
    setAttributeNode = function setAttributeNode() {
        [native code]
    }
    //函数
    removeAttributeNode = function removeAttributeNode() {
        [native code]
    }
    //函数
    getAttributeNodeNS = function getAttributeNodeNS() {
        [native code]
    }
    //函数
    setAttributeNodeNS = function setAttributeNodeNS() {
        [native code]
    }
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/aLink = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/background = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/bgColor = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/link = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/text = 
    /*
    //---aObject[aName].constructor---
    function String() {
        [native code]
    }*/vLink = 
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/ELEMENT_NODE = 1
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/ATTRIBUTE_NODE = 2
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/TEXT_NODE = 3
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/CDATA_SECTION_NODE = 4
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/ENTITY_REFERENCE_NODE = 5
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/ENTITY_NODE = 6
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/PROCESSING_INSTRUCTION_NODE = 7
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/COMMENT_NODE = 8
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/DOCUMENT_NODE = 9
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/DOCUMENT_TYPE_NODE = 10
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/DOCUMENT_FRAGMENT_NODE = 11
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/NOTATION_NODE = 12
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/DOCUMENT_POSITION_DISCONNECTED = 1
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/DOCUMENT_POSITION_PRECEDING = 2
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/DOCUMENT_POSITION_FOLLOWING = 4
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/DOCUMENT_POSITION_CONTAINS = 8
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/DOCUMENT_POSITION_CONTAINED_BY = 16
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32
    /*
    //---aObject[aName].constructor---
    function Boolean() {
        [native code]
    }*/hidden = false
    /*
    //---aObject[aName].constructor---
    function Number() {
        [native code]
    }*/tabIndex = -1
    /*
    //---aObject[aName].constructor---
    function Boolean() {
        [native code]
    }*/draggable = false
    /*
    //---aObject[aName].constructor---
    function Boolean() {
        [native code]
    }*/spellcheck = false
    /*
    //---aObject[aName].constructor---
    function Object() {
        [native code]
    }*/dataset = [object DOMStringMap]