var y = new ActiveXObject("Scripting.Dictionary");
y.add ("a", "test");
if (y.Exists("a"))
   document.write("true");

解决方案 »

  1.   

    这在javascript中可以用吗?
    Scripting.Dictionary什么意思?
      

  2.   

    http://www.zdnet.com.cn/developer/code/story/0,2000081534,39080762,00.htm
      

  3.   

    http://js.wanxu.com/sdk/2004/9-12/221012962.htm
      

  4.   

    var test = new Object();
    test["name"] = "fason";
    test["class"] = "*****";
      

  5.   

    http://ttyp.cnblogs.com/archive/2005/07/30/203824.html
      

  6.   

    var obj= new Object();
    obj.a1=new Array();
    obj.a2="123";
    ...
      

  7.   

    嵌套数组或者对象。对象如:
    var o={a:1,b:2,c:3}
    alert(o.a) //1
    alert(o.b) //2 ……