var ss:XML= <a><b c="1"/><b c="2"/><b c="3"/></a>
1. 取得<b c="2"/> 里面的c的值trace(ss.b[1].@c);
2. 循环取得"c"的属性值 trace(ss.b.@c);
1测试有效
posted on 2009-06-05 09:27 jiahuafu 阅读(654) 评论(2) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 jiahuafu Powered by .NET 9.0 on Kubernetes