public function CheckRepeatClass():String
{
var repeatClass:String = "";
var strClass:String = "";
if (m_aryData && m_aryData.length > 0)
{
for (var i:int = 0; i < m_aryData.length; i++)
{
if (strClass.indexOf(m_aryData[i].classification) > -1)
{
repeatClass += ";“" + m_aryData[i].classification + "”";
}
else
{
if (0 == i)
{
strClass += m_aryData[i].classification;
}
else
{
strClass += ";" + m_aryData[i].classification;
}
}
}
if ("" != repeatClass)
{
repeatClass = repeatClass.substring(1);
}
}
return repeatClass;
}
网友评论