Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用验证创建动态 Flex 表单组件?是否可以创建动态 VO 类?
每创建一个动态 VO 类,您可以dynamic class在 ActionScript 中定义一个可以添加或删除属性的属性。
dynamic class
public dynamic class EntityVO { public function EntityVO() { } }
可以添加成员:
var entityVo:EntityVO = new EntityVO(); entityVo.property1 = "New property";
或删除:
delete entityVo.property1;