可能是为了证明他nb吧。var Prototype = {
  Kao: function(x) { alert (x) }
}alert (Prototype.Kao(5))

解决方案 »

  1.   

    这不是数组,这定义的是一个对象
    它的属性可以用.(点)直接访问,如colors.highLight
      

  2.   

    this.colors   =
      {
        "highLight" : "#0A246A",
        "highLightText" : "#FFFFFF",
        "mouseOverBgColor" : "#D4D0C8"
        init: function(){init() }
      }; 
    function init(){
      this.colors.highLight= "#FFFFFF"
      //分别初始化  
      ...
    }可以如:colors.highLight;也可以像二楼那样采用colors.init()
    就是这样!
      

  3.   

    楼上正解,colors定义成为一个全局对象,大括号中是它的几个属性