看起来有点像引用vb中type定义的结构 ...

解决方案 »

  1.   

    定义了一个对象;
    可以这样访问
    alert(webFXTreeConfig.rootIcon);其实和这样是一样的:
    var webFXTreeConfig = new Object();
    webFXTreeConfig.rootIcon = 'images/foldericon.png';
    webFXTreeConfig.openRootIcon = 'images/openfoldericon.png';
    ............
      

  2.   

    分解成如下:
    function obj(){
    this.rootIcon = 'images/foldericon.png';
    this.openRootIcon = 'images/openfoldericon.png';
    this.folderIcon = 'images/foldericon.png';
    this.openFolderIcon = 'images/openfoldericon.png';
    this.fileIcon = 'images/file.png';
    this.iIcon = 'images/I.png';
    this.lIcon = 'images/L.png';
    this.lMinusIcon = 'images/Lminus.png';
    this.lPlusIcon = 'images/Lplus.png';
    this.tIcon = 'images/T.png';
    this.tMinusIcon = 'images/Tminus.png';
    this.tPlusIcon = 'images/Tplus.png';
    this.blankIcon = 'images/blank.png';
    this.defaultText = 'Tree Item';
    this.defaultAction = 'javascript:void(0);';
    this.defaultBehavior = 'classic';
    this.usePersistence = true
    };var webFXTreeConfig = new obj();对象.