document.all是这个文件中的所有对象
eval(codeString)
 检查 JScript 代码并执行.
 

解决方案 »

  1.   

    all是document的属性.
    Returns a reference to the collection of elements contained by the object.
    表示,所有document的元素.eval是,检查 JScript 代码并执行
    eval 函数允许 JScript 源代码的动态执行。
      

  2.   

    all: 当前窗口中的所有对象
    document.all.objectID可是获取当前窗口中的任一元素。
    与document的区别:不用一级级的获取对象eval():求值函数
    eval(expression):返回expression得结果