此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【jyk1970】截止到2008-06-27 10:50:37的历史汇总数据(不包括此帖):
发帖数:13                 发帖分:1300               
结贴数:13                 结贴分:1300               
未结数:0                  未结分:0                  
结贴率:100.00%            结分率:100.00%            
敬礼!

解决方案 »

  1.   

    更正:
    请问如何在IE中枚举document, 枚举结果中显示getElementById? 
      

  2.   

    你说你想干什么 你的思路可能有问题枚举结果中显示getElementById?看不懂
      

  3.   

    在IE中枚举结果如下,其中为何没出现getElementById字样?我想利用(for in) 取得某个object 各种属性方法,可是显示getElementById如果都不成立的话...!。
    namespaces = [object]
    lastModified = 06/27/2008 11:29:09
    parentNode = null
    nodeType = 9
    fileCreatedDate = 09/30/2007
    onbeforeeditfocus = null
    bgColor = #ffffff
    oncontextmenu = null
    onrowexit = null
    embeds = [object]
    scripts = [object]
    onactivate = null
    mimeType = HTML Document
    alinkColor = #0000ff
    onmousemove = null
    onselectstart = null
    oncontrolselect = null
    body = [object]
    protocol = File Protocol
    onkeypress = null
    onrowenter = null
    onmousedown = null
    vlinkColor = #800080
    URL = file://H:\test\ajax\ajax sduty\探索.htm
    onreadystatechange = null
    doctype = null
    onbeforedeactivate = null
    applets = [object]
    fileModifiedDate = 06/27/2008
    onmouseover = null
    dir = 
    media = 
    defaultCharset = gb2312
    firstChild = [object]
    plugins = [object]
    onafterupdate = null
    ondragstart = null
    oncellchange = null
    cookie = 
    documentElement = [object]
    nextSibling = null
    nameProp = 探索
    referrer = 
    ondatasetcomplete = null
    onmousewheel = null
    onerrorupdate = null
    onselectionchange = null
    lastChild = [object]
    ondblclick = null
    onkeyup = null
    location = file:///H:/test/ajax/ajax%20sduty/探索.htm
    forms = [object]
    title = 探索
    onrowsinserted = null
    previousSibling = null
    compatMode = BackCompat
    onmouseup = null
    onkeydown = null
    onrowsdelete = null
    onfocusout = null
    fgColor = #000000
    ondatasetchanged = null
    onmouseout = null
    parentWindow = [object]
    nodeName = #document
    onpropertychange = null
    onstop = null
    onhelp = null
    linkColor = #0000ff
    onbeforeactivate = null
    images = [object]
    readyState = complete
    frames = [object]
    all = [object]
    onbeforeupdate = null
    onclick = null
    childNodes = [object]
    onfocusin = null
    anchors = [object]
    selection = [object]
    fileUpdatedDate = 
    domain = 
    security = 这种类型的文档没有安全证书。
    fileSize = 3376
    ownerDocument = null
    ondataavailable = null
    styleSheets = [object]
    nodeValue = null
    attributes = null
    activeElement = [object]
    implementation = [object]
    links = [object]
    URLUnencoded = file://H:\test\ajax\ajax sduty\探索.htm
    ondeactivate = null
      

  4.   

    alert(document.propertyIsEnumerable("getElementById"));
    在IE中也不好使!
      

  5.   

    id~~不能枚举吧?
    用name吧~~~
      

  6.   

    IE的话,可以这样:for(var i=0;i<document.all.length;i++)
    {
    if(document.all[i].id && document.all[i].id!="")
    {
    alert(document.all[i].id);
    }
    }
      

  7.   

    把id改成name,在定义html的时候就不要加id ,用document.getElementsByName得到的是一个数组,用document.getElementsByID得到的是一个唯一的
      

  8.   

    我想利用(for in) 取得document各种属性方法,可是IE中的结果少了getElementById等属性!。 
    FF里有getElementById,IE里该如何做?