-------------------------------
属性名bookname4 属性值java
属性名bookname2 属性值php
属性名bookname1 属性值mvc
属性名bookname 属性值c++
属性名bookname3 属性值android
java
php
mvc
c++
android
---------------------------------
package
{
import flash.display.Sprite;
public class OneHello extends Sprite
{
public function OneHello()
{
var book:Object={
bookname:"c++",
bookname1:"mvc",
bookname2:"php",
bookname3:"android",
bookname4:"java"
}
for(var k in book)
{
trace("属性名"+k+" "+"属性值"+book[k]);
}
for each (var i in book)
{
trace(i);
}
}
}
}
作者:gongzibai 发表于2013-5-23 0:25:41 原文链接
阅读:64 评论:0 查看评论