这么写怎么不对呢?例子也是这么写的啊
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.collections.ArrayCollection;
[Bindable]
private var tmp:ArrayCollection;
private function result(event:ResultEvent):void{
tmp = event.result.employees.employee;
}
[Bindable]
private var bianliang:ArrayCollection = new ArrayCollection{ ///1086: 语法错误: 在 leftbrace 之前应该有分号。
[
{"name":"abc","zip":"436537654"},
{"name":"cba","zip":"945-345982"},
]
};
]]> ////Id1084: 语法错误: rightbrace 应在 end of program 之前。
</mx:Script>
我是按照例子写的,不该有错啊!!!
实在想不明白了。
(不加private var bianliang:ArrayCollection = new ArrayCollection这段之前程序是正常的)