指动尘飞

宇宙中的一粒微尘随着指尖的敲打勾勒出一条优美的抛物线

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  9 Posts :: 1 Stories :: 1 Comments :: 0 Trackbacks
【3】.数组定义:
    var myArray = [1,5,68,3];
    OR:
    var myArray = new Array();
    OR:
    var myArray = new Array(4);
    OR:
    var myArray = new Array(1,5,"Thomas", true);
    OR:
    var cities = new Array(4);
    cities["Australia"] =
          ["Sydney", "Melbourne", "Canberra", "Perth", "Brisbane"];
    cities["France"] =
          ["Paris", "Lyons", "Nice", "Dijon"];
    cities["Japan"] = ["Tokyo", "Kyoto", "Osaka", "Nara"];
    cities["New Zealand"] =
          ["Auckland", "Wellington", "Christchurch", "Dunedin", "Queenstown"];
posted on 2010-10-19 23:23 单人寸 阅读(94) 评论(0)  编辑  收藏 所属分类: 编程

只有注册用户登录后才能发表评论。


网站导航: