2 wolf33ever wolf33ever 于 2014.05.15 10:27 提问

flex 中ArrayCollection筛选的问题

function GetBlueLineData(value:String):void
{
var obj1:Object=new Object();
obj1["x7"]=RMS_MIN;
obj1["y7"]=value;
tchVoltageRealValueAArray.addItem(obj1);
var obj2:Object=new Object();
obj2["x7"]=BlueValueArray[BlueValueArray.length-1].x1;
obj2["y7"]=value;
if(RMS_MIN<BlueValueArray[BlueValueArray.length-1].x1)
{

for (var ssIndex:Number=RMS_MIN;ssIndex<BlueValueArray[BlueValueArray.length-1].x1;ssIndex++)
var ojb3:Object=new Object();
ojb3["x7"]=ssIndex;
ojb3["y7"]=value;

                    tchVoltageRealValueAArray.addItem(ojb3);

                }

                  tchVoltageRealValueAArray.addItem(obj2);
                  tchVoltageRealValue._dp=tchVoltageRealValueAArray;

}

怎么在方法体内先检查tchVoltageRealValueAArray是否有obj1["x7"],obj1["y7"].....

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!