码迷,mamicode.com
首页 > 编程语言 > 详细

array objct 对象数组

时间:2015-07-13 13:38:44      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

 

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"},

array objct 对象数组

标签:

原文地址:http://www.cnblogs.com/regalys168/p/4642509.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!