- var example:XML = <example><someElement/></example>;
- example.someElement.@number = 12.1;
- example.someElement.@string = "example";
- example.someElement.@boolean = true;
- example.someElement.@array = ["a", null, 7, undefined, "c"];
- /* 显示:
- <example>
- <someElement number="12.1" string="example" boolean="true"
- array="a,,7,,c"/>
- </example>
- */
在Flex中对XML添加属性
最新推荐文章于 2024-08-15 09:46:02 发布