array objct 对象数组

 

objct 对象数组 

 

          private var product1:Object = {productName:"ylj",productTitle:"小型压路机",productId:"1"}; 
		private var product2:Object = {productName:"zjsmgj",productTitle:"座驾式抹光机",productId:"2"}; 
		private var product3:Object = {productName:"gcsysj",productTitle:"沟槽式压实机 ",productId:"3"}; 
		private var product4:Object = {productName:"zzj",productTitle:"装载机",productId:"4"}; 
		private var product5:Object = {productName:"hzjc",productTitle:"回柱绞车",productId:"5"}; 
	
		private var _productsArr:Array  = new Array(product1,product2,product3,product4,product5);	

  

模仿类似ArrayCollection:

 

private var _productsArr:ArrayCollection = new ArrayCollection([
    {productName:"hzjc",productTitle:"回柱绞车", productId:"1", btnType:"3",donghuaType:"0"},

posted @ 2015-07-13 11:55  regalys168  阅读(186)  评论(0编辑  收藏  举报