Object._nsroot = {
jcf  :{ 
_nsName : "jcf"
  }
};几个括号嵌套,都晕了!

解决方案 »

  1.   

    javascript object 简称 jsonalert(Object._nsroot.jcf._nsName);
      

  2.   

    可以按hash結構來理解。你試下下面的代碼。
    <script>
    var Prototype = {
      Version: '1.5.0',
      BrowserFeatures: {
        XPath: !!document.evaluate
      },  ScriptFragment: '(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)',
      emptyFunction: function() {},
      K: function(x) { return x }
    }alert (Prototype.K(5))//////////////////////////////////////////////////function pasta(grain, width, shape, hasEgg)
    {
        this.grain = grain;
        this.width = width;
        this.shape = shape;
        this.hasEgg = hasEgg;
    }var spaghetti = new pasta("wheat", 0.2, "circle", true);
    var linguine = new pasta("wheat", 0.3, "oval", true);alert (spaghetti.width);
    </script>
      

  3.   

    meizz(梅花雪) ( )^^blood diamond
      

  4.   

    na lo ho do !studying.........